-
-
Notifications
You must be signed in to change notification settings - Fork 25.9k
[MRG + 2] Ensure dependencies installed #4371
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
Conversation
I think we should point to the installation instructions on the sklearn website, or maybe directly recommend binary packages (anaconda / canopy) |
I updated it. But I am somehow still not happy with it. I think we should keep it more explicit? |
@amueller Comments? |
if is_scipy_installed() is False: | ||
sys.stderr.write("Error: Scientific Python(SciPy) is not installed.\n" | ||
"scikit-learn requires SciPy.\n" | ||
"Instruction installations are available on sklearn website:\ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would say " on the scikit-learn website"
Apart from my comment it seems fine with me. |
081bd4d
to
6d14d52
Compare
Good to merge @amueller? |
Yeah, it looks good to me. |
Bumping this up. |
closes #1495. |
@@ -162,6 +175,18 @@ def setup_package(): | |||
|
|||
metadata['version'] = VERSION | |||
else: | |||
if is_numpy_installed() is False: | |||
sys.stderr.write("Error: Numerical Python(NumPy) is not installed.\n" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'd much rather a space between Python
and (NumPy)
Gave my +1 to fast, sys.exit is not good |
Done. |
OK, LGTM now :) |
Looks good! |
bump. |
Hi, in its recent versions (along with recent enough versions of pip), the setup.py has an setup_requires for numpy that works meaning that |
Ok I changed my mind: for windows users it's true that it won't help them trying to build make pip try numpy and scipy source and they will get obscure build error messages. For MacOSX users there are wheels on PyPI for numpy / scipy & scikit-learn so the For Linux users using the pip version currently shipped in most "stable" distros, namely pip 1.5.4 for Ubuntu 14.04 LTS, the Let's merge this PR for now and we might want to explore again the possibility to use |
[MRG + 2] Ensure dependencies installed
Thanks @ogrisel : I agree with this decision. In addition, I fear very much the results of a "pip install -U" on an already-working system with the setup_requires. |
Without a |
Why wouldn't it break anything with a |
Ported #4332