Using setuptools develop mode with numpy distutils
Hi, I need to use numpy's distutils Extension to build a fortran / f2py extension. 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? -Chris -- Christopher Barker, Ph.D. Oceanographer 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@noaa.gov
On Wed, Sep 18, 2013 at 12:16 AM, Chris Barker <chris.barker@noaa.gov> wrote:
Hi,
I need to use numpy's distutils Extension to build a fortran / f2py
extension.
But I also really like setuptools' "develop" mode.
Just import setuptools before doing the numpy.distutils imports. You don't need to use setuptools.setup() in order to get access to the setuptools-added commands. -- Robert Kern
On Wed, Sep 18, 2013 at 2:20 AM, Robert Kern <robert.kern@gmail.com> wrote:
Just import setuptools before doing the numpy.distutils imports. You don't need to use setuptools.setup() in order to get access to the setuptools-added commands.
Thanks --- that works fine -- I could have sworn I tried that. -Chris -- Christopher Barker, Ph.D. Oceanographer 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@noaa.gov
participants (2)
-
Chris Barker
-
Robert Kern