ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> scipy-dev
scipy-dev
[SciPy-dev] Problem converting from scipy_distutils to numpy.distutils
by Berthold Hoellmann other posts by this author
Nov 15 2006 8:53AM messages near this date
Re: [SciPy-dev] PyEM problem | [SciPy-dev] scipy.stats.sem is wrong
Hello,

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> 
    ext_modules=extInfo.exts)
  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
    dist.run_commands()
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/dist.py", line 974, in 
run_commands
    self.run_command(cmd)
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/dist.py", line 994, in 
run_command
    cmd_obj.run()
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/command/build.py", line
 112, in run
    self.run_command(cmd_name)
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/cmd.py", line 333, in r
un_command
    self.distribution.run_command(command)
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/dist.py", line 994, in 
run_command
    cmd_obj.run()
  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
    self.build_extensions()
  File "/usr/local/gltools/python/Python-2.5/lib/python2.5/distutils/command/build_ext.py", 
line 407, in build_extensions
    self.build_extension(ext)
  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@[...].com
Internet: http://www.gl-group.com



This e-mail and any attachment thereto may contain confidential information and/or informati
on protected by intellectual property rights for the exclusive attention of the intended add
ressees 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, disclos
ure etc. is prohibited and may be unlawful. When addressed to our clients the content of thi
s e-mail is subject to the General Terms and Conditions of GL's Group of Companies applicabl
e at the date of this e-mail. 

If you have received this e-mail in error, please notify the sender either by telephone or b
y 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.
_______________________________________________
Scipy-dev mailing list
Scipy-dev@[...].org
http://projects.scipy.org/mailman/listinfo/scipy-dev

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved