[Numpy-discussion] Build of current Git HEAD for NumPy fails

Dirk Ullrich dirk.ullrich@googlemail....
Fri Aug 19 06:26:16 CDT 2011


Hi,

when trying to build current Git HAED of NumPy with - both for
$PYTHON=python2 or $PYTHON=python3:

$PYTHON setup.py config_fc --fcompiler=gnu95 install --prefix=$WHATEVER

I get the following error - here for PYTHON=python3.2

running build_clib
customize UnixCCompiler
customize UnixCCompiler using build_clib
building 'npymath' library
Traceback (most recent call last):
  File "setup.py", line 214, in <module>
    setup_package()
  File "setup.py", line 207, in setup_package
    configuration=configuration )
  File "/common/packages/build/makepkg-du/python-numpy-git/src/numpy-build/build/py3k/numpy/distutils/core.py",
line 186, in setup
    return old_setup(**new_attr)
  File "/usr/lib/python3.2/distutils/core.py", line 150, in setup
    dist.run_commands()
  File "/usr/lib/python3.2/distutils/dist.py", line 919, in run_commands
    self.run_command(cmd)
  File "/usr/lib/python3.2/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "/common/packages/build/makepkg-du/python-numpy-git/src/numpy-build/build/py3k/numpy/distutils/command/build.py",
line 37, in run
    old_build.run(self)
  File "/usr/lib/python3.2/distutils/command/build.py", line 128, in run
    self.run_command(cmd_name)
  File "/usr/lib/python3.2/distutils/cmd.py", line 315, in run_command
    self.distribution.run_command(command)
  File "/usr/lib/python3.2/distutils/dist.py", line 938, in run_command
    cmd_obj.run()
  File "/common/packages/build/makepkg-du/python-numpy-git/src/numpy-build/build/py3k/numpy/distutils/command/build_clib.py",
line 100, in run
    self.build_libraries(self.libraries)
  File "/common/packages/build/makepkg-du/python-numpy-git/src/numpy-build/build/py3k/numpy/distutils/command/build_clib.py",
line 119, in build_libraries
    self.build_a_library(build_info, lib_name, libraries)
  File "/common/packages/build/makepkg-du/python-numpy-git/src/numpy-build/build/py3k/numpy/distutils/command/build_clib.py",
line 179, in build_a_library
    fcompiler.extra_f77_compile_args =
build_info.get('extra_f77_compile_args') or []
AttributeError: 'str' object has no attribute 'extra_f77_compile_args'

It seems that `fcompiler's value in line 179 of
`numpy/distutils/command/build_clib.py' is not properly initialized as
an appropriate `fcompiler' object.

Dirk


More information about the NumPy-Discussion mailing list