You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
numpy specified as requirement only for testing. #158
In any case, I have made a branch that tries to do away entirely with the numpy dependency but I am stuck at skipping doctests, any help would be appreciated.
Yeah, the big question is, should numpy be a strict requirement or optional. Until 1.6.1 it has been optional and I would like to make it like that again, because making it a strict requirement breaks backwards compatability and doesn:t respect the existing interface. This means moving the numpy import in toplevel.py (back) to inside the numpy related functions. I don't think that either #160 or #159 are good solutions.
Activity
esc commentedon Oct 22, 2018
esc commentedon Oct 22, 2018
Taking a closer look at the offending commit:
3591d23add3
I see that
numpyhas been a test requirement even before this commit. Is there anything breaking on your end that made you open this pull-request?esc commentedon Oct 22, 2018
I also see that
numpyis a top-level dependency in master right now:https://github.com/Blosc/python-blosc/blob/master/blosc/toplevel.py#L11
Would it suffice to simply remove that line? @cosmin-lazar-zahacinschi
esc commentedon Oct 22, 2018
In any case, I have made a branch that tries to do away entirely with the
numpydependency but I am stuck at skipping doctests, any help would be appreciated.#159
agates commentedon Nov 2, 2018
@esc Actually, I think it's fine the way you have it. Numpy should be required to be installed for tests from what I can see.
Just need to include it in the standard requirements so people who install your package can use it without manually installing numpy, like this:
esc commentedon Nov 2, 2018
Yeah, the big question is, should numpy be a strict requirement or optional. Until 1.6.1 it has been optional and I would like to make it like that again, because making it a strict requirement breaks backwards compatability and doesn:t respect the existing interface. This means moving the numpy import in toplevel.py (back) to inside the numpy related functions. I don't think that either #160 or #159 are good solutions.
esc commentedon Nov 5, 2018
I just released 1.6.2, which should fix this issue. If not, please re-open.
agates commentedon Nov 6, 2018
@esc 1.6.2 works for me. It lets me remove numpy as a hard dependency in an application that uses blosc :). Thank you!
esc commentedon Nov 6, 2018
@agates thanks for the feedback, happy it works for you now.