[SciPy-dev] eggs and f2py extensions
Christopher Fonnesbeck
chris at trichech.us
Mon Jan 16 21:55:57 CST 2006
On Jan 16, 2006, at 3:37 PM, Pearu Peterson wrote:
>> setuptools.setup is distutils.core.setup. However,
>> numpy.distutils.core.setup is
>> not distutils.core.setup. Pearu started doing some work to move
>> things out of
>> numpy.distutils.core.setup such that numpy.distutils can play well
>> with other
>> distutils extensions. Until that happens, I don't see using
>> setuptools'
>> extensions to the setup() keywords with numpy.distutils.
>
> numpy.distutils.core.setup should play nicely with all distutils
> extensions. It's an extension of distutils.core.setup, not a
> replacement.
>
> Could you try out the following code in the header of setup.py:
>
> from numpy.distutils.core import setup
> import setuptools
> setuptools.setup = setup
>
> ? If it works, numpy.distutils could overwrite setuptools.setup
> automatically in numpy/distutils/__init__.py, for instance.
Unfortunately, setuputils.setup does not recognize f2py modules.
Adding the lines above yields:
Oliver:/usr/local/src/PyMC chris$ python setup.py build
running build
running build_py
creating build
creating build/lib.darwin-8.4.0-Power_Macintosh-2.4
creating build/lib.darwin-8.4.0-Power_Macintosh-2.4/PyMC
copying PyMC/__init__.py -> build/lib.darwin-8.4.0-
Power_Macintosh-2.4/PyMC
copying PyMC/Matplot.py -> build/lib.darwin-8.4.0-Power_Macintosh-2.4/
PyMC
copying PyMC/MCMC.py -> build/lib.darwin-8.4.0-Power_Macintosh-2.4/PyMC
running build_ext
building 'PyMC.flib' extension
gcc options: '-fno-strict-aliasing -Wno-long-double -no-cpp-precomp -
mno-fused-madd -fPIC -fno-common -dynamic -DNDEBUG -g -O3 -Wall -
Wstrict-prototypes'
error: unknown file type '.f' (from 'PyMC/flib.f')
Thanks,
Chris
--
Christopher J. Fonnesbeck
Population Ecologist, Marine Mammal Section
Fish & Wildlife Research Institute (FWC)
St. Petersburg, FL
Adjunct Assistant Professor
Warnell School of Forest Resources
University of Georgia
Athens, GA
T: 727.235.5570
E: chris at trichech.us
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2417 bytes
Desc: not available
Url : http://projects.scipy.org/pipermail/scipy-dev/attachments/20060116/a627e768/attachment.bin
More information about the Scipy-dev
mailing list