File: multiarch.diff

package info (click to toggle)
python3-stdlib-extensions 3.11.2-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 28,020 kB
  • sloc: python: 134,527; ansic: 24,386; sh: 213; makefile: 190
file content (12 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/3.7/Lib/distutils/sysconfig.py
+++ b/3.7/Lib/distutils/sysconfig.py
@@ -112,6 +112,9 @@ def get_python_inc(plat_specific=0, pref
                 incdir = os.path.join(get_config_var('srcdir'), 'Include')
                 return os.path.normpath(incdir)
         python_dir = 'python' + get_python_version() + build_flags
+        if not python_build and plat_specific:
+            import sysconfig
+            return sysconfig.get_path('platinclude')
         return os.path.join(prefix, "include", python_dir)
     elif os.name == "nt":
         if python_build: