-
Notifications
You must be signed in to change notification settings - Fork 9
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
Unable to build wheel using python3.5, missing numpy dependency #4
Comments
The environment where you are building the wheel (.venv in your case?) needs to have numpy installed: setup.py has to be able to import numpy when it is run by pip. Is numpy installed for your example? I have no trouble building a wheel in my setup but it would certainly fail if numpy wasn't installed. numpy is needed for the build because its header files are needed when compiling the cython files. |
Ah, ok. It's interesting that I can pip install without numpy and
everything works ok. Is there no way to specify that numpy be installed
before the wheel is built (something like a build dependency) ?
Thanks for the awesomely fast reply!
…-- Javier
On Tue, Jan 15, 2019 at 11:06 AM Peter Lepage ***@***.***> wrote:
The environment where you are building the wheel (.venv in your case?)
needs to have numpy installed: setup.py has to be able to import numpy when
it is run by pip. Is numpy installed for your example?
I have no trouble building a wheel in my setup but it would certainly fail
if numpy wasn't installed. numpy is needed for the build because its header
files are needed when compiling the cython files.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#4 (comment)>, or mute
the thread
<https://github.com/notifications/unsubscribe-auth/AAQ9b8-eXHO1oNC3P-0UdJ9kfvq4eWQeks5vDfx9gaJpZM4aBC1q>
.
|
Having extra stuff installed in your environment when building a wheel might surprise and irritate people. You expect extra modules when installing something, but not so much when simply building a distribution. This could be why there is no way to make it automatic. |
I am closing this issue because I believe it is resolved (ie, you can build wheels so long as |
To reproduce:
Note: installation via
pip install gvar
works, it's the wheel building the fails.Output:
The text was updated successfully, but these errors were encountered: