[Numpy-tickets] [NumPy] #311: --f77exec= and --f90exec= are not honoured in f2py compile
NumPy
numpy-tickets at scipy.net
Tue Oct 3 22:07:53 CDT 2006
#311: --f77exec= and --f90exec= are not honoured in f2py compile
---------------------+------------------------------------------------------
Reporter: Dianora | Owner: somebody
Type: defect | Status: new
Priority: normal | Milestone:
Component: Other | Version:
Severity: normal | Keywords:
---------------------+------------------------------------------------------
patch included
compiling Fortran sources
Traceback (most recent call last):
File "/usr/local/bin/f2py", line 6, in ?
f2py.main()
File "/usr/local/lib/python2.4/site-packages/numpy/f2py/f2py2e.py", line
546,
+in main
run_compile()
File "/usr/local/lib/python2.4/site-packages/numpy/f2py/f2py2e.py", line
533,
+in run_compile
setup(ext_modules = [ext])
File "/usr/local/lib/python2.4/site-packages/numpy/distutils/core.py",
line
+174, in setup
return old_setup(**new_attr)
File "/usr/local/lib/python2.4/distutils/core.py", line 149, in setup
dist.run_commands()
File "/usr/local/lib/python2.4/distutils/dist.py", line 946, in
run_commands
self.run_command(cmd)
File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File "/usr/local/lib/python2.4/distutils/command/build.py", line 112, in
run
self.run_command(cmd_name)
File "/usr/local/lib/python2.4/distutils/cmd.py", line 333, in
run_command
self.distribution.run_command(command)
File "/usr/local/lib/python2.4/distutils/dist.py", line 966, in
run_command
cmd_obj.run()
File
+"/usr/local/lib/python2.4/site-
packages/numpy/distutils/command/build_ext.py",
+line 113, in run
self.build_extensions()
File "/usr/local/lib/python2.4/distutils/command/build_ext.py", line
405, in
+build_extensions
self.build_extension(ext)
File
+"/usr/local/lib/python2.4/site-
packages/numpy/distutils/command/build_ext.py",
+line 252, in build_extension
f_objects += self.fcompiler.compile(f_sources,
AttributeError: 'NoneType' object has no attribute 'compile'
--- numpy/distutils/fcompiler/__init__.py.orig Tue Oct 3 20:39:58 2006
+++ numpy/distutils/fcompiler/__init__.py Tue Oct 3 22:43:18 2006
@@ -268,11 +268,7 @@
f90 = self.__get_cmd('compiler_f90','F90',(conf,'f90exec'))
# Temporarily setting f77,f90 compilers so that
# version_cmd can use their executables.
- if f77:
- self.set_executables(compiler_f77=[f77])
- if f90:
- self.set_executables(compiler_f90=[f90])
-
+ # If you do that, --f77exec and --f90exec break -db
# Must set version_cmd before others as self.get_flags*
# methods may call self.get_version.
vers_cmd = self.__get_cmd(self.get_version_cmd)
This fixes --f77exec and --f90exec for me, but possibly breaks
something else. I'd like someone with more python clue than I have
to verify this is correct.
--
Ticket URL: <http://projects.scipy.org/scipy/numpy/ticket/311>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.
More information about the Numpy-tickets
mailing list