Skip to content
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

Dependencies? #1

Open
amueller opened this issue Apr 20, 2016 · 3 comments
Open

Dependencies? #1

amueller opened this issue Apr 20, 2016 · 3 comments

Comments

@amueller
Copy link

Hey Jake. How is it possible to declare installation requirements for a package using distutils? It seems kind of odd...
Also, what is the reason to use numpy distutils instead of setuptools here?

@jakevdp
Copy link
Owner

jakevdp commented Apr 20, 2016

I think it's possible, but I tend to avoid anything relating to dependencies and requirements with distutils/setuptools. Having those tools automatically try to install/upgrade dependencies is almost never what I want (for example, when I first released mpld3 I put a specific matplotlib version in requirements.txt; I later got a report that someone had typed pip install mpld3 and it broke their scientific computing environment because pip tried to upgrade matplotlib).

The reason I used numpy's distutils is that I tend to write Cython code that operates on numpy arrays, so this is what I've always done.

@amueller
Copy link
Author

hmmm pip install mpld3 should not parse the requirements.txt, right?

@jakevdp
Copy link
Owner

jakevdp commented Apr 20, 2016

hmmm pip install mpld3 should not parse the requirements.txt, right?

Maybe I listed it somewhere else... I can't recall.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants