[pypy-dev] Detecting numpy vs micronumpy

Peter Cock p.j.a.cock at googlemail.com
Fri Sep 16 11:48:00 CEST 2011


On Thu, Sep 15, 2011 at 11:04 PM, Alex Gaynor <alex.gaynor at gmail.com> wrote:
>
>>
>> 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
>
> Well, until we implement it anyways :)  That's why I think something like
> "import platform; platform.python_implementation == 'PyPy'" is a godo way to
> check.
> Alex

Thanks, I'll use that. Its a shame that wasn't in Python 2.5 though,
my copy of Jython doesn't support it either.

Peter


More information about the pypy-dev mailing list