Repository navigation
Conversation
|
Travis would required a re-trigger. |
|
I guess we should then add a CI build that just tries to pip-install from scratch? @ogrisel what do you think? |
|
When I do Which I guess is not the desired behavior? |
|
Hum actually it shows Not sure what that means... |
|
@amueller Fixed. The behavior is now similar to |
|
Hm, still not working for me. Oddly it seems to be compiling numpy but then gives me the "no numpy installed" error. |
|
I got |
|
Sorry about that, fixing it now. |
|
@amueller I tried fixing it. Not sure if that is the best approach though. |
|
Not sure why the build fails. Does it have to do with |
|
It failed for all versions of python and numpy.... |
|
(Sorry I'm not more helpful at the moment but I am working on other things, too. This might not be super easy to get right.) |
|
Indeed. But I will be on it, once I free myself from other things. |
|
Fixed. I can squash, if everything looks okay. |
There was a problem hiding this comment.
please follow pep8: no uppercase here.
|
Works for me now. Please squash. |
|
also +1 for merge. |
There was a problem hiding this comment.
We've had this discussion many times: do we actually want this? This will most likely result in people having numpy build on there system automatically, but without proper linear algebra compiled in it, which will give horrible run times.
I would much prefer a clean error message asking the user to install numpy, but no automatic build of numpy.
There was a problem hiding this comment.
The point brought up is that for continuous integration that is really annoying.
Also, I think breaking will most likely result in the user doing a pip install numpy and then a pip install scikit-learn, which doesn't solve anything.
|
To answer myself: This won't solve the problem for installing, because there will be a need for scipy, which is an even bigger difficulty to build. The discussion in #4164 has come to the conclusion that having scikit-learn pip installable was desirable. I disagree with this conclusion. I can see that some people absolutely want it that way. I think that we should make it an option, but not on by default. Maybe something around the idea of "pip install scikit-learn[all]". So that if you do, as a naive user "pip install scikit-learn", you get a helpful message that points you to a variety of binary (anaconda, but also Christopher Gholke's binaries), and also tell you that if you are sure that you know what you are doing (and are likely to take a very strong performance hit), you can do "pip install scikit-learn[all]". I feel quite strongly about not automagically installing a broken scikit-learn. I have seen, in the case of numpy, cluster administrators just installing numpy without linear algebra packs. This give a 70 (yes 70) slow down on operations like an SVD. On an HPC cluster, this is just a joke and gives a bad reputation to the Python stack. |
|
My virtualenv skills are apparently not good enough to test if this actually succeeds in installing. Btw, I think you give naive users to much credit when thinking they'll read an informative error message ;) |
No, it's not a separate package. The syntax [foobar] is for optional |
|
Oh, crazy. I did not know about that. |
|
I think that it would be a way of compromising and making as many people |
|
👍 on that. |
|
Doing a Should |
|
Yes, I think it should uniformly throw an error. |
|
Actually, no. I didn't. I should setup a small travis setup with |
|
That would be helpful, thanks. |
Pass build_requires if numpy is not found
Fixes #4164
Runs:
pip install .python setup.py build