[Numpy-discussion] How do I ensure numpy headers are present in setup.py?

Chris Colbert sccolbert@gmail....
Fri Apr 2 22:45:41 CDT 2010


On Fri, Apr 2, 2010 at 3:03 PM, Erik Tollerud <erik.tollerud@gmail.com>wrote:

you could try something like this (untested):

if __name__ == '__main__':
    try:
        import numpy
    except ImportError:
        import subprocess
        subprocess.check_call(['easy_install', 'numpy'])  # will except if
call fails
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/numpy-discussion/attachments/20100402/dd68fcdb/attachment-0001.html 


More information about the NumPy-Discussion mailing list