[SciPy-dev] Problem converting from scipy_distutils to numpy.distutils

Berthold Höllmann berthold.hoellmann at gl-group.com
Wed Nov 15 10:53:13 CST 2006


I maintain a larger project where I utilize scipy_distutils for quite
some time. Now I find the time to convert the project to numpy from
Numeric. I want to be able to use different versions of the INTEL
Fortran compiler under Linux easily, so in my path I have only script
named like ifort90 or ifort91 that call the correct compiler. So To
compile my project I use a command line like:

python setup.py config_fc --fcompiler=intel --f90exec=ifort91 --f77exec=ifort91 build

It used to work with scipy_distutils, but now I get:

customize UnixCCompiler using build_ext
warning: build_ext: fcompiler=intel is not available.
Traceback (most recent call last):
  File "setup.py", line 201, in <module>
  File "/usr/software/gltools/python/Python-2.5/lib/python2.5/site-packages/numpy-1.0-py2.5-linux-i686.egg/numpy/distutils/core.py", line 174, in setup
    return old_setup(**new_attr)
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/core.py", line 151, in setup
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/dist.py", line 974, in run_commands
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/command/build.py", line 112, in run
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/cmd.py", line 333, in run_command
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/dist.py", line 994, in run_command
  File "/usr/software/gltools/python/Python-2.5/lib/python2.5/site-packages/numpy-1.0-py2.5-linux-i686.egg/numpy/distutils/command/build_ext.py", line 121, in run
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/command/build_ext.py", line 407, in build_extensions
  File "/usr/software/gltools/python/Python-2.5/lib/python2.5/site-packages/numpy-1.0-py2.5-linux-i686.egg/numpy/distutils/command/build_ext.py", line 312, in build_extension
    link = self.fcompiler.link_shared_object
AttributeError: 'NoneType' object has no attribute 'link_shared_object'

It seems I need a command line switch for the linker as well?

Kind regards

Berthold Höllmann
Germanischer Lloyd AG
CAE Development
Vorsetzen 35
20459 Hamburg
Phone: +49(0)40 36149-7374
Fax: +49(0)40 36149-7320
e-mail: berthold.hoellmann at gl-group.com
Internet: http://www.gl-group.com

This e-mail and any attachment thereto may contain confidential information and/or information protected by intellectual property rights for the exclusive attention of the intended addressees named above. Any access of third parties to this e-mail is unauthorised. Any use of this e-mail by unintended recipients such as total or partial copying, distribution, disclosure etc. is prohibited and may be unlawful. When addressed to our clients the content of this e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicable at the date of this e-mail. 

If you have received this e-mail in error, please notify the sender either by telephone or by e-mail and delete the material from any computer.

GL's Group of Companies does not warrant and/or guarantee that this message at the moment of receipt is authentic, correct and its communication free of errors, interruption etc.

More information about the Scipy-dev mailing list