[Numpy-discussion] Determine if numpy is installed from an extension

Peter Notebaert peno at telenet.be
Wed Feb 3 03:38:33 EST 2010


>From an extension? How to import numpy from there and then test if that
succeeded and that without any annoying message if possible...

Thanks,

Peter

On Wed, Feb 3, 2010 at 1:34 AM, David Cournapeau <david at silveregg.co.jp>wrote:

> Peter Notebaert wrote:
>
> > How can I test if numpy is installed on the system from the extension so
> > that I do not active the numpy functionality and that it is still able
> > to use my extension, but then without numpy support?
>
> Is there some reason why you cannot try to import numpy first to check
> whether it is available ?
>
> cheers,
>
> David
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion at scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20100203/e56062d9/attachment.html>


More information about the NumPy-Discussion mailing list