summaryrefslogtreecommitdiffstats
path: root/Lib/distutils/command
diff options
context:
space:
mode:
authorSteve Dower <steve.dower@microsoft.com>2019-02-05 01:15:13 (GMT)
committerGitHub <noreply@github.com>2019-02-05 01:15:13 (GMT)
commit85e102a2b090dd693d0801ae2edb9660cfa0f281 (patch)
tree0735adb3d875561dd3f6f266253db336fb122788 /Lib/distutils/command
parent69091cb497b2f0fe7e2789b30b43cf78caf9de9b (diff)
downloadcpython-85e102a2b090dd693d0801ae2edb9660cfa0f281.zip
cpython-85e102a2b090dd693d0801ae2edb9660cfa0f281.tar.gz
cpython-85e102a2b090dd693d0801ae2edb9660cfa0f281.tar.bz2
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
Diffstat (limited to 'Lib/distutils/command')
-rw-r--r--Lib/distutils/command/build_ext.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/distutils/command/build_ext.py b/Lib/distutils/command/build_ext.py
index 158465d..0428466 100644
--- a/Lib/distutils/command/build_ext.py
+++ b/Lib/distutils/command/build_ext.py
@@ -161,9 +161,10 @@ class build_ext(Command):
# Put the Python "system" include dir at the end, so that
# any local include dirs take precedence.
- self.include_dirs.append(py_include)
+ self.include_dirs.extend(py_include.split(os.path.pathsep))
if plat_py_include != py_include:
- self.include_dirs.append(plat_py_include)
+ self.include_dirs.extend(
+ plat_py_include.split(os.path.pathsep))
self.ensure_string_list('libraries')
self.ensure_string_list('link_objects')