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

josef.pktd@gmai... josef.pktd@gmai...
Fri Apr 2 23:17:59 CDT 2010


On Fri, Apr 2, 2010 at 11:45 PM, Chris Colbert <sccolbert@gmail.com> wrote:
>
>
> 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

Personally, I don't like it at all if packages automatically
easy_install big dependencies like numpy especially if it is connected
to a version requirement.

Is it possible to kill an installation subprocess with CRTL-C ?

Josef

>
>
>
> _______________________________________________
> NumPy-Discussion mailing list
> NumPy-Discussion@scipy.org
> http://mail.scipy.org/mailman/listinfo/numpy-discussion
>
>


More information about the NumPy-Discussion mailing list