[pypy-dev] Detecting numpy vs micronumpy

Peter Cock p.j.a.cock at googlemail.com
Thu Sep 15 23:55:06 CEST 2011


On Thu, Sep 15, 2011 at 10:02 PM, Alex Gaynor <alex.gaynor at gmail.com> wrote:
> I think, for the time being, the appropriate solution is to just check the
> Python version, the original NumPy doesn't run on PyPy so it should be fine.
> Alex

How precisely?

The problem I am running into is that "import numpy" appears
to work under PyPy 1.6 (you get micronumpy) but later things like
numpy.get_include() don't work (AttributeError). Should I just treat
that exception itself as meaning it is micronumpy not real numpy?

Thanks,

Peter


More information about the pypy-dev mailing list