Lines Matching +full:- +full:stdlib
28 'stdlib': '{installed_base}/{platlibdir}/python{py_version_short}',
30 'purelib': '{base}/lib/python{py_version_short}/site-packages',
31 'platlib': '{platbase}/{platlibdir}/python{py_version_short}/site-packages',
40 'stdlib': '{installed_base}/lib/python',
50 'stdlib': '{installed_base}/Lib',
52 'purelib': '{base}/Lib/site-packages',
53 'platlib': '{base}/Lib/site-packages',
61 # the installation layout (eg. different site-packages directory).
77 'stdlib': '{installed_base}/{platlibdir}/python{py_version_short}',
79 'purelib': '{base}/lib/python{py_version_short}/site-packages',
80 'platlib': '{platbase}/{platlibdir}/python{py_version_short}/site-packages',
89 'stdlib': '{installed_base}/Lib',
91 'purelib': '{base}/Lib/site-packages',
92 'platlib': '{base}/Lib/site-packages',
100 # For the OS-native venv scheme, we essentially provide an alias:
137 'stdlib': '{userbase}/Python{py_version_nodot_plat}',
139 'purelib': '{userbase}/Python{py_version_nodot_plat}/site-packages',
140 'platlib': '{userbase}/Python{py_version_nodot_plat}/site-packages',
146 'stdlib': '{userbase}/{platlibdir}/python{py_version_short}',
148 'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
149 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
155 'stdlib': '{userbase}/lib/python',
157 'purelib': '{userbase}/lib/python/site-packages',
158 'platlib': '{userbase}/lib/python/site-packages',
165 _SCHEME_KEYS = ('stdlib', 'platstdlib', 'purelib', 'platlib', 'include',
179 # like old-style Setup files).
180 _variable_rx = r"([a-zA-Z][a-zA-Z0-9_]+)\s*=\s*(.*)"
181 _findvar1_rx = r"\$\(([A-Za-z][A-Za-z0-9_]*)\)"
182 _findvar2_rx = r"\${([A-Za-z][A-Za-z0-9_]*)}"
200 # python is an actual executable ('venv --copies' or Windows).
233 # On POSIX-y platforms, Python will:
234 # - Build from .h files in 'headers' (which is only added to the
236 # - Install .h files to 'include'
316 """Parse a Makefile-style file.
448 config_dir_name = f'config-{_PY_VERSION_SHORT}{sys.abiflags}'
452 config_dir_name += f'-{sys.implementation._multiarch}'
453 return os.path.join(get_path('stdlib'), config_dir_name, 'Makefile')
465 """Generate the Python module containing build-time variables."""
480 with open(config_h, encoding="utf-8") as f:
488 # -- these paths are relative to the Python source, but when installed
493 # There's a chicken-and-egg situation on OS X with regards to the
496 # `make pybuilddir.txt` target -- which is a precursor to the
511 pybuilddir = f'build/lib.{get_platform()}-{_PY_VERSION_SHORT}'
513 pybuilddir += '-pydebug'
523 # Create file used for sys.path fixup -- see Modules/getpath.c
539 vars['LIBDEST'] = get_path('stdlib')
554 """Parse a config.h-style file.
563 define_rx = re.compile("#define ([A-Z][A-Za-z0-9_]+) (.*)\n")
564 undef_rx = re.compile("/[*] #undef ([A-Z][A-Za-z0-9_]+) [*]/\n")
674 # the init-function.
695 # multi-architecture, multi-os-version installers
721 This is used mainly to distinguish platform-specific build directories and
722 platform-specific built distributions. Typically includes the OS name and
728 linux-i586
729 linux-alpha (?)
730 solaris-2.6-sun4u
733 win-amd64 (64bit Windows on AMD64 (aka x86_64, Intel64, EM64T, etc)
734 win32 (all others - specifically, sys.platform is returned)
736 For other non-POSIX platforms, currently just returns 'sys.platform'.
741 return 'win-amd64'
743 return 'win-arm32'
745 return 'win-arm64'
763 machine = machine.replace('/', '-')
766 # At least on Linux/Intel, 'machine' is the processor --
769 return f"{osname}-{machine}"
773 release = f"{int(release[0]) - 3}.{release[2:]}"
779 # fall through to standard osname-release-machine representation
796 return f"{osname}-{release}-{machine}"
804 """Expand Makefile-style variables -- "${foo}" or "$(foo)" -- in
809 you're fine. Returns a variable-expanded version of 's'.
838 if '--generate-posix-vars' in sys.argv: