bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)

This commit is contained in:
Steve Dower 2019-02-04 17:15:13 -08:00 committed by GitHub
parent 69091cb497
commit 85e102a2b0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
6 changed files with 40 additions and 14 deletions

View file

@ -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')