diff options
author | 2020-10-09 08:25:42 +0300 | |
---|---|---|
committer | 2020-10-09 08:25:42 +0300 | |
commit | 78bd35d755df1ef77d603f6fa41fec8187cb2906 (patch) | |
tree | f7f3b06fa875706f253abda2783aa118c823166f /lib-python | |
parent | fix (again) avoid python since it needs LD_LIBRARY_PATH on buildbot workers (diff) | |
download | pypy-78bd35d755df1ef77d603f6fa41fec8187cb2906.tar.gz pypy-78bd35d755df1ef77d603f6fa41fec8187cb2906.tar.bz2 pypy-78bd35d755df1ef77d603f6fa41fec8187cb2906.zip |
revert cf2bc3e07e69, redo with specific nt_pypy scheme
Diffstat (limited to 'lib-python')
-rw-r--r-- | lib-python/2.7/sysconfig.py | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib-python/2.7/sysconfig.py b/lib-python/2.7/sysconfig.py index aa05e96213..2e5448d344 100644 --- a/lib-python/2.7/sysconfig.py +++ b/lib-python/2.7/sysconfig.py @@ -36,6 +36,16 @@ _INSTALL_SCHEMES = { 'scripts': '{base}/bin', 'data' : '{base}', }, + 'nt_pypy': { + 'stdlib': '{base}/lib-{implementation_lower}/{py_version_short}', + 'platstdlib': '{base}/lib-{implementation_lower}/{py_version_short}', + 'purelib': '{base}/site-packages', + 'platlib': '{base}/site-packages', + 'include': '{base}/include', + 'platinclude': '{base}/include', + 'scripts': '{base}/Scripts', + 'data' : '{base}', + }, 'nt': { 'stdlib': '{base}/Lib', 'platstdlib': '{base}/Lib', @@ -182,6 +192,9 @@ def _get_default_scheme(): return 'pypy' # the default scheme for posix is posix_prefix return 'posix_prefix' + if os.name == 'nt': + if '__pypy__' in sys.builtin_module_names: + return 'nt_pypy' return os.name def _getuserbase(): |