File: multiarch.diff

package info (click to toggle)
python3-stdlib-extensions 3.7.3-1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 10,644 kB
  • sloc: python: 55,777; ansic: 7,797; makefile: 176; sh: 168
file content (14 lines) | stat: -rw-r--r-- 701 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: b/3.6/Lib/distutils/sysconfig.py
===================================================================
--- a/3.6/Lib/distutils/sysconfig.py
+++ b/3.6/Lib/distutils/sysconfig.py
@@ -99,6 +99,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":
         return os.path.join(prefix, "include")