-
-
Notifications
You must be signed in to change notification settings - Fork 180
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
pip installing fails if numpy is not already installed #170
Comments
Yes, I can see how that might be a problem. Can you think of a way around it? |
Allow fastparquet to be installed when NumPy and Cython are not already installed. pip attempts to run `python setup.py egg_info` to detemine the install requirements. Allow this command and other non-build related commands to be run without importing numpy or cython. closes dask#170
Just ran into this problem. An issue over in pip has a discussion about this that mentioned bottleneck. bottleneck has a solution that includes a comment crediting stackoverflow.
|
@jjhelmus , your solution appears to work; is there any benefit to the one above mentioned by @jbrockmendel ? |
I believe that the solution suggested by @jdavidheiser and in the stack overflow post works around the numpy dependency but Cython would need to be install before calling The solution in #171 works by examining the command line arguments which allows pip to be run without NumPy or Cython installed. |
Since setup.py tries to import numpy before even defining any dependencies, it's possible for the numpy import to be attempted before the dependencies trigger installing numpy. This made it difficult to install fastparquet as part of a larger requirements.txt.
The text was updated successfully, but these errors were encountered: