On Thu, 06 Jul 2006 15:53:39 -0300 Flavio Codeco Coelho <[EMAIL PROTECTED]> wrote:
> David M. Cooke wrote: > > Flavio Codeco Coelho <[EMAIL PROTECTED]> writes: > > > > > > > > numpy.distutils interoperates (mostly) ok with setuptools. Just do > > 'import setuptools' before 'import numpy.distutils'. > > > > Although, if you run into problems, please report them to the numpy > > list ([email protected]) and we'll see what we > > can do. > > > > > Actually I would have to do this: > > from setuptoos import setup > from numpy.distutils.core import setup, Extension > > Will this work? i.e. is the setup class from setuptools equivalent to > the setup class from Numpy? Yes; if numpy finds that setuptools has already been imported [1], you can use the numpy.distutils.setup and numpy.distutils.Extension. You don't need to import setup from setuptools; this should be enough: import setuptools from numpy.distutils.core import setup, Extension [1] this is the behaviour in the current svn version. Previous versions would try to import setuptools, and use it if it succeeded. -- |>|\/|< /--------------------------------------------------------------------------\ |David M. Cooke http://arbutus.physics.mcmaster.ca/dmc/ |[EMAIL PROTECTED] _______________________________________________ Distutils-SIG maillist - [email protected] http://mail.python.org/mailman/listinfo/distutils-sig
