[pypy-dev] Detecting numpy vs micronumpy
Alex Gaynor
alex.gaynor at gmail.com
Fri Sep 16 00:04:37 CEST 2011
On Thu, Sep 15, 2011 at 5:55 PM, Peter Cock <p.j.a.cock at googlemail.com>wrote:
> 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
>
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
--
"I disapprove of what you say, but I will defend to the death your right to
say it." -- Evelyn Beatrice Hall (summarizing Voltaire)
"The people's good is the highest law." -- Cicero
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/pypy-dev/attachments/20110915/70411624/attachment.html>
More information about the pypy-dev
mailing list