[Numpy-discussion] Using setuptools develop mode with numpy distutils

Chris Barker chris.barker at noaa.gov
Tue Sep 17 19:16:02 EDT 2013


I need to use numpy's distutils Extension to build a fortran / f2py

But I also really like setuptools' "develop" mode.

However, if I do:

from numpy.distutils.core import Extension

and use that to define my Extension object, but use:

from setuptools import setup

And use that for the main setup, I get:

error: each element of 'ext_modules' option must be an Extension instance
or 2-tuple

So apparently setuptools doesn't recognize numpy's Extension object as an
Extension object.

Is there a way around this?



Christopher Barker, Ph.D.

Emergency Response Division
NOAA/NOS/OR&R            (206) 526-6959   voice
7600 Sand Point Way NE   (206) 526-6329   fax
Seattle, WA  98115       (206) 526-6317   main reception

Chris.Barker at noaa.gov
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20130917/1ec36835/attachment.html>

More information about the NumPy-Discussion mailing list