cython_template icon indicating copy to clipboard operation
cython_template copied to clipboard

Dependencies?

Open amueller opened this issue 9 years ago • 3 comments

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?

amueller avatar Apr 20 '16 18:04 amueller

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.

jakevdp avatar Apr 20 '16 19:04 jakevdp

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

amueller avatar Apr 20 '16 19:04 amueller

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

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

jakevdp avatar Apr 20 '16 19:04 jakevdp