[Numpy-discussion] py3k execfile('setup.py')

Pauli Virtanen pav@iki...
Thu Jul 29 11:04:27 CDT 2010


Thu, 29 Jul 2010 23:39:19 +0800, Ralf Gommers wrote:
> The execfile builtin has disappeared in python 3.x, so I'm trying to
> find another solution for the use of it in setupegg.py. So far I've
> tried

I'd do something like this in "setup.py":

  ...

+ if os.environ.get('USE_SETUPTOOLS'):
+     import setuptools
  from numpy.distutils.core import setup
  ...

And then 'setupegg.py' is trivial to write.

But no idea why it hangs, though. You could maybe also try 'import setup'

	Pauli



More information about the NumPy-Discussion mailing list