summarylogtreecommitdiffstats
path: root/lib32-distutils-sysconfig.patch
blob: 64d0f8dfc998d246b01d7eb3157360213760c379 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
diff -ruN Python-3.11.3/Lib/distutils/sysconfig.py Python-3.11.3.new/Lib/distutils/sysconfig.py
--- Python-3.11.3/Lib/distutils/sysconfig.py	2023-04-05 01:52:17.000000000 +0330
+++ Python-3.11.3.new/Lib/distutils/sysconfig.py	2023-05-19 09:38:35.066967919 +0330
@@ -287,7 +287,7 @@
                 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)
+        return os.path.join(prefix, "lib32/python3.11/include", python_dir)
     elif os.name == "nt":
         if python_build:
             # Include both the include and PC dir to ensure we can find
@@ -328,7 +328,7 @@
             libdir = sys.platlibdir
         else:
             # Pure Python
-            libdir = "lib"
+            libdir = "lib32"
         libpython = os.path.join(prefix, libdir,
                                  "python" + get_python_version())
         if standard_lib: