Closed albireox closed 6 years ago
This is a general problem not specific to fast-histogram (see e.g. https://stackoverflow.com/questions/27021270/how-to-handle-dependency-on-scipy-in-setup-py or https://stackoverflow.com/questions/21605927/why-doesnt-setup-requires-work-properly-for-numpy). But I do have some ideas on adjusting the setup.py to prevent this kind of issue, so I'll look into it.
I fixed this in https://github.com/astrofrog/fast-histogram/pull/15
The current version of
setup.py
imports numpy to get its include path. I'm finding this to be a problem when you addfast-histogram
as a dependency in yourrequirements.txt
. Even if you also addnumpy
as a requirement, there is no way to enforce that numpy will have been installed by the time thesetup.py
infast-histogram
gets run.