BUG: sysconfig attributes/distutils issue #17268
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
MAINT: use sysconfig not distutils.sysconfig where possible #17223 started the
distutils
modernizationprocess because of the various upstream stuff
going on (thanks)
that set of changes caused build issues with NumPy
pre-release wheels + SciPy
master
:https://travis-ci.org/github/scipy/scipy/builds/725002838
I was able to patch two separate issues and confirm
that this feature branch restores the SciPy build locally:
distutils.sysconfig.get_python_inc
wasreplaced with
distutils.get_python_inc
, which does notexist (probably a typo)
sysconfig.get_python_inc
doesnot appear to exist; the closest match I could find (and
that worked) was
sysconfig.get_path()
with options forgeneral and platform-specific header paths as needed
either (the prefix case may still be slightly different?), but
it does prevent the SciPy build break originally introduced
as a start