Include path for Python.h in Windows builds #1395
Unanswered
julian-smith-artifex-com
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
When cibuildwheel builds a Windows wheel, is there a way for
setup.py
to find out what include path to use when compiling, in order to pick up the correct Python.h?On Unix one can use
f'{sys.executable}-config --includes'
, but there doesn't seem to be an equivalent available on Windows when cibuildwheel runssetup.py
inside a venv - for example the directory that contains the python executable looks like:In the past on Windows i've looked at all installed python versions by parsing the output from
py -0p
, but cibuildwheel builds wheels for python versions that are not known topy
. So i'm a bit stuck now...Any suggestions welcomed.
- Julian
Beta Was this translation helpful? Give feedback.
All reactions