-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
BLD: win32 not using python architecture #24704
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I commented on the issue. You should use |
You may also need to set PIP_EXTRA_INDEX_URL. |
The actual issue here is that MSVC for x86-64 is being used to try and build 32-bit Python extension modules:
To get past that problem, the 32-bit MSVC compiler must be activated so that it gets used for the whole build. The numpy/.github/workflows/wheels.yml Lines 102 to 106 in e536952
This problem is specific to Windows + 32-bit Python, so I don't expect to see more of these issues once we upload I'll note that |
Let's close this issue as soon as we have |
This has been resolved. Thanks! |
I just hit this trying to set up a 32 bit windows numpy development environment to run down an issue happening on CI. I eventually found this thread via a google search but would have gotten here faster with a nicer error message. @rgommers Is there a way for meson to detect that x64 MSVC is activated on x86 python and fail early? |
also for anyone else trying to do this, I was able to build numpy with a 32 bit python in a VS command prompt after running |
The error message is pretty clear about the problem: Since
Perhaps cc.sizeof('Py_intptr_t', dependencies: py_dep, prefix: '#include <Python.h>')) So, doesn't look like there's anything we can check. I'll have a look at adding a sentence to the error message. xref mesonbuild/meson#11435 for the most relevant upstream issue. |
From: pyproj4/pyproj#1330 (comment)
Possible to build based on python architecture and not host machine architecture? Other suggestions?
The text was updated successfully, but these errors were encountered: