[Numpy-tickets] [NumPy] #539: config parameters are not passed on to build

NumPy numpy-tickets@scipy....
Sat Apr 12 13:05:41 CDT 2008


#539: config parameters are not passed on to build
---------------------------------+------------------------------------------
 Reporter:  pv                   |        Owner:  cookedm 
     Type:  defect               |       Status:  assigned
 Priority:  normal               |    Milestone:  1.0.5   
Component:  numpy.distutils      |      Version:          
 Severity:  critical             |   Resolution:          
 Keywords:  distutils config -I  |  
---------------------------------+------------------------------------------
Comment (by pv):

 I can confirm that --noopt and --noarch work now (r5024).

 However, --debug does not:
 {{{
 scipy$ ./setup.py config_fc --debug build
 [clip]
 running config_fc
 unifing config_fc, config, build_clib, build_ext, build commands
 --fcompiler options
 running build
 running scons
 customize UnixCCompiler
 Found executable /usr/bin/gcc
 customize GnuFCompiler
 Found executable /usr/bin/g77
 gnu: no Fortran 90 compiler found
 gnu: no Fortran 90 compiler found
 Traceback (most recent call last):
   File "./setup.py", line 92, in <module>
     setup_package()
   File "./setup.py", line 84, in setup_package
     configuration=configuration )
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/core.py", line 184, in setup
     return old_setup(**new_attr)
   File "/usr/lib/python2.5/distutils/core.py", line 151, in setup
     dist.run_commands()
   File "/usr/lib/python2.5/distutils/dist.py", line 974, in run_commands
     self.run_command(cmd)
   File "/usr/lib/python2.5/distutils/dist.py", line 994, in run_command
     cmd_obj.run()
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/command/build.py", line 38, in run
     self.run_command('scons')
   File "/usr/lib/python2.5/distutils/cmd.py", line 333, in run_command
     self.distribution.run_command(command)
   File "/usr/lib/python2.5/distutils/dist.py", line 993, in run_command
     cmd_obj.ensure_finalized()
   File "/usr/lib/python2.5/distutils/cmd.py", line 117, in
 ensure_finalized
     self.finalize_options()
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/command/scons.py", line 253, in finalize_options
     force = self.force)
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/fcompiler/__init__.py", line 809, in
 new_fcompiler
     c_compiler=c_compiler)
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/fcompiler/__init__.py", line 791, in
 get_default_fcompiler
     c_compiler=c_compiler)
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/fcompiler/__init__.py", line 740, in
 _find_existing_fcompiler
     c.customize(dist)
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/fcompiler/__init__.py", line 491, in customize
     get_flags('debug', dflags)
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/fcompiler/__init__.py", line 478, in get_flags
     flags.extend(getattr(self.flag_vars, tag))
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/environment.py", line 37, in __getattr__
     return self._get_var(name, conf_desc)
   File "/home/pauli/koodi/proj/numpy/dist/lib/python2.5/site-
 packages/numpy/distutils/environment.py", line 50, in _get_var
     hook, envvar, confvar, convert = conf_desc
 ValueError: too many values to unpack
 }}}
 However, this is not fatal, because 'python setup.py build --debug' works
 properly.

 I think this ticket can be downgraded in severity now, and closed when the
 problem with --debug is fixed.

-- 
Ticket URL: <http://scipy.org/scipy/numpy/ticket/539#comment:6>
NumPy <http://projects.scipy.org/scipy/numpy>
The fundamental package needed for scientific computing with Python.


More information about the Numpy-tickets mailing list