mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
bpo-35299: Fixed sysconfig and distutils during PGO profiling (GH-11744)
This commit is contained in:
parent
69091cb497
commit
85e102a2b0
6 changed files with 40 additions and 14 deletions
|
@ -177,10 +177,12 @@ class BuildExtTestCase(TempdirManager,
|
|||
cmd.finalize_options()
|
||||
|
||||
py_include = sysconfig.get_python_inc()
|
||||
self.assertIn(py_include, cmd.include_dirs)
|
||||
for p in py_include.split(os.path.pathsep):
|
||||
self.assertIn(p, cmd.include_dirs)
|
||||
|
||||
plat_py_include = sysconfig.get_python_inc(plat_specific=1)
|
||||
self.assertIn(plat_py_include, cmd.include_dirs)
|
||||
for p in plat_py_include.split(os.path.pathsep):
|
||||
self.assertIn(p, cmd.include_dirs)
|
||||
|
||||
# make sure cmd.libraries is turned into a list
|
||||
# if it's a string
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue