Lines Matching refs:scheme
59 # Downstream distributors can overwrite the default install scheme.
62 # So, distributors will change the default scheme to one that correctly
66 # the default install scheme, there is no guarantee that the information
72 # The "*_venv" install scheme is a scheme to bootstrap virtual environments,
74 # Downstream distributors who patch posix_prefix/nt scheme are encouraged to
100 # For the OS-native venv scheme, we essentially provide an alias:
135 # NOTE: When modifying "purelib" scheme, update site._get_path() too.
232 for scheme in ('posix_prefix', 'posix_home'):
235 # scheme when building CPython)
237 scheme = _INSTALL_SCHEMES[scheme]
238 scheme['headers'] = scheme['include']
239 scheme['include'] = '{srcdir}/Include'
240 scheme['platinclude'] = '{projectbase}/.'
241 del scheme
261 def _expand_vars(scheme, vars):
272 for key, value in _INSTALL_SCHEMES[scheme].items():
302 scheme = _get_preferred_schemes()[key]
303 if scheme not in _INSTALL_SCHEMES:
305 f"{key!r} returned {scheme!r}, which is not a valid scheme "
308 return scheme
609 def get_paths(scheme=get_default_scheme(), vars=None, expand=True):
610 """Return a mapping containing an install scheme.
612 ``scheme`` is the install scheme name. If not provided, it will
613 return the default scheme for the current platform.
616 return _expand_vars(scheme, vars)
618 return _INSTALL_SCHEMES[scheme]
621 def get_path(name, scheme=get_default_scheme(), vars=None, expand=True):
622 """Return a path corresponding to the scheme.
624 ``scheme`` is the install scheme name.
626 return get_paths(scheme, vars, expand)[name]
843 print(f'Current installation scheme: "{get_default_scheme()}"')