我们从Python开源项目中,提取了以下50个代码示例,用于说明如何使用pip.locations.distutils_scheme()。
def get_lib_location_guesses(*args, **kwargs): scheme = distutils_scheme('', *args, **kwargs) return [scheme['purelib'], scheme['platlib']]
def get_include(*args, **kwargs): import os try: from pip import locations return os.path.dirname( locations.distutils_scheme('pybind11', *args, **kwargs)['headers']) except ImportError: return 'include'