[Numpy-discussion] Is this a bug in numpy.distutils ?

Robert Kern robert.kern@gmail....
Tue Aug 4 15:23:36 CDT 2009

On Tue, Aug 4, 2009 at 15:09, Matthew Brett<matthew.brett@gmail.com> wrote:

>  File "/home/mb312/usr/local/lib/python2.5/site-packages/numpy/distutils/command/build_ext.py",
> line 74, in run
>    self.library_dirs.append(build_clib.build_clib)
> UnboundLocalError: local variable 'build_clib' referenced before assignment
> because of the check for inplace builds above that, leaving build_clib
> undefined.  I'm afraid I wasn't quite sure what the right thing to do
> was.

Probably just

  build_clib = self.distribution.get_command_obj('build_clib')

after the log.warn().

Robert Kern

"I have come to believe that the whole world is an enigma, a harmless
enigma that is made terrible by our own mad attempt to interpret it as
though it had an underlying truth."
  -- Umberto Eco

More information about the NumPy-Discussion mailing list