python38/python-3.3.0-distutils-multiarch.patch

14 lines
730 B
Diff

--- Python-3.3.0/Lib/distutils/sysconfig.py 2012-09-29 12:00:28.000000000 +0400
+++ Python-3.3.0/Lib/distutils/sysconfig.py 2013-03-28 14:06:57.221228944 +0400
@@ -107,7 +107,10 @@
incdir = os.path.join(get_config_var('srcdir'), 'Include')
return os.path.normpath(incdir)
python_dir = 'python' + get_python_version() + build_flags
- return os.path.join(prefix, "include", python_dir)
+ multiarch = ''
+ if plat_specific:
+ multiarch = 'multiarch-%s-%s' % (os.uname()[4], sys.platform)
+ return os.path.join(prefix, "include", multiarch, python_dir)
elif os.name == "nt":
return os.path.join(prefix, "include")
elif os.name == "os2":