]> git.pld-linux.org Git - packages/python3.git/blobdiff - python3-makefile-location.patch
BR: autoconf-archive
[packages/python3.git] / python3-makefile-location.patch
index 912e4cdb0d99b2d5f9d82deecb548c933c7bc065..2dbb571ad8ff7af21b7e2ed2b0feb54fcf8c6984 100644 (file)
@@ -1,12 +1,12 @@
-diff -Nur Python-3.3.1.orig/Lib/distutils/sysconfig.py Python-3.3.1/Lib/distutils/sysconfig.py
---- Python-3.3.1.orig/Lib/distutils/sysconfig.py       2013-04-06 08:41:35.000000000 +0100
-+++ Python-3.3.1/Lib/distutils/sysconfig.py    2013-04-07 19:45:29.409178359 +0100
-@@ -256,7 +256,7 @@
+diff -urNp -x '*.orig' Python-3.9.2.org/Lib/distutils/sysconfig.py Python-3.9.2/Lib/distutils/sysconfig.py
+--- Python-3.9.2.org/Lib/distutils/sysconfig.py        2021-02-25 18:40:49.900518043 +0100
++++ Python-3.9.2/Lib/distutils/sysconfig.py    2021-02-25 18:40:51.570570064 +0100
+@@ -260,7 +260,7 @@ def get_makefile_filename():
      """Return full pathname of installed Makefile from the Python build."""
      if python_build:
          return os.path.join(_sys_home or project_base, "Makefile")
 -    lib_dir = get_python_lib(plat_specific=0, standard_lib=1)
 +    lib_dir = get_python_lib(plat_specific=1, standard_lib=1)
      config_file = 'config-{}{}'.format(get_python_version(), build_flags)
-     return os.path.join(lib_dir, config_file, 'Makefile')
+     if hasattr(sys.implementation, '_multiarch'):
+         config_file += '-%s' % sys.implementation._multiarch
This page took 0.076831 seconds and 4 git commands to generate.