65 lines
3.2 KiB
Diff
65 lines
3.2 KiB
Diff
diff -Naur Python-3.8.0-orig/Lib/distutils/command/build_ext.py Python-3.8.0/Lib/distutils/command/build_ext.py
|
|
--- Python-3.8.0-orig/Lib/distutils/command/build_ext.py 2019-10-22 10:01:56.348041100 +0300
|
|
+++ Python-3.8.0/Lib/distutils/command/build_ext.py 2019-10-22 10:03:01.072554800 +0300
|
|
@@ -221,9 +221,10 @@
|
|
if sys.platform[:6] == 'cygwin':
|
|
if sys.executable.startswith(os.path.join(sys.exec_prefix, "bin")):
|
|
# building third party extensions
|
|
+ config_dir_name = os.path.basename(sysconfig.get_config_var('LIBPL'))
|
|
self.library_dirs.append(os.path.join(sys.prefix, "lib",
|
|
"python" + get_python_version(),
|
|
- "config"))
|
|
+ config_dir_name))
|
|
else:
|
|
# building python standard extensions
|
|
self.library_dirs.append('.')
|
|
diff -Naur Python-3.8.0-orig/Lib/sysconfig.py Python-3.8.0/Lib/sysconfig.py
|
|
--- Python-3.8.0-orig/Lib/sysconfig.py 2019-10-22 10:02:59.528152100 +0300
|
|
+++ Python-3.8.0/Lib/sysconfig.py 2019-10-22 10:03:01.462555500 +0300
|
|
@@ -43,23 +43,23 @@
|
|
'data': '{base}',
|
|
},
|
|
'nt': {
|
|
- 'stdlib': '{installed_base}/Lib',
|
|
- 'platstdlib': '{base}/Lib',
|
|
- 'purelib': '{base}/Lib/site-packages',
|
|
- 'platlib': '{base}/Lib/site-packages',
|
|
- 'include': '{installed_base}/Include',
|
|
- 'platinclude': '{installed_base}/Include',
|
|
- 'scripts': '{base}/Scripts',
|
|
+ 'stdlib': '{installed_base}/lib/python{py_version_short}',
|
|
+ 'platstdlib': '{base}/lib/python{py_version_short}',
|
|
+ 'purelib': '{base}/lib/python{py_version_short}',
|
|
+ 'platlib': '{base}/lib/python{py_version_short}',
|
|
+ 'include': '{installed_base}/include/python{py_version_short}',
|
|
+ 'platinclude': '{installed_base}/include/python{py_version_short}',
|
|
+ 'scripts': '{base}/bin',
|
|
'data': '{base}',
|
|
},
|
|
# NOTE: When modifying "purelib" scheme, update site._get_path() too.
|
|
'nt_user': {
|
|
- 'stdlib': '{userbase}/Python{py_version_nodot}',
|
|
- 'platstdlib': '{userbase}/Python{py_version_nodot}',
|
|
- 'purelib': '{userbase}/Python{py_version_nodot}/site-packages',
|
|
- 'platlib': '{userbase}/Python{py_version_nodot}/site-packages',
|
|
- 'include': '{userbase}/Python{py_version_nodot}/Include',
|
|
- 'scripts': '{userbase}/Python{py_version_nodot}/Scripts',
|
|
+ 'stdlib': '{userbase}/lib/python{py_version_short}',
|
|
+ 'platstdlib': '{userbase}/lib/python{py_version_short}',
|
|
+ 'purelib': '{userbase}/lib/python{py_version_short}/site-packages',
|
|
+ 'platlib': '{userbase}/lib/python{py_version_short}/site-packages',
|
|
+ 'include': '{userbase}/include/python{py_version_short}',
|
|
+ 'scripts': '{userbase}/bin',
|
|
'data': '{userbase}',
|
|
},
|
|
'posix_user': {
|
|
@@ -461,7 +461,7 @@
|
|
vars['INCLUDEPY'] = get_path('include')
|
|
vars['EXT_SUFFIX'] = '.pyd'
|
|
vars['EXE'] = '.exe'
|
|
- vars['VERSION'] = _PY_VERSION_SHORT_NO_DOT
|
|
+ vars['VERSION'] = _PY_VERSION_SHORT
|
|
vars['BINDIR'] = os.path.dirname(_safe_realpath(sys.executable))
|
|
|
|
#
|