X-Git-Url: https://git.pld-linux.org/?a=blobdiff_plain;f=python3-makefile-location.patch;h=2dbb571ad8ff7af21b7e2ed2b0feb54fcf8c6984;hb=51826d16747a6f6fc7df7470204ecec8dc406888;hp=912e4cdb0d99b2d5f9d82deecb548c933c7bc065;hpb=fd3fc14e5ab0016e62d590c5eeaa3ab866dc1549;p=packages%2Fpython3.git diff --git a/python3-makefile-location.patch b/python3-makefile-location.patch index 912e4cd..2dbb571 100644 --- a/python3-makefile-location.patch +++ b/python3-makefile-location.patch @@ -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