File: multiarch.diff

package info (click to toggle)
python3-stdlib-extensions 3.13.5-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 32,060 kB
  • sloc: python: 143,054; ansic: 66,791; makefile: 314; sh: 149
file content (12 lines) | stat: -rw-r--r-- 573 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
--- a/3.9/Lib/distutils/sysconfig.py
+++ b/3.9/Lib/distutils/sysconfig.py
@@ -110,6 +110,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: