[Numpy-discussion] Numpy on AIX 5.3

Marek Wojciechowski wojciechowski_m@o2...
Tue Jul 8 10:08:48 CDT 2008


Dnia poniedziałek 07 lipiec 2008, numpy-discussion-request@scipy.org napisał:
> > > >   File "/home/marek/tmp/numpy-1.1.0/numpy/distutils/ccompiler.py",
> > > > line 303, in CCompiler_cxx_compiler
> > > >     + cxx.linker_so[2:]
> > > > TypeError: can only concatenate list (not "str") to list
> > >
> > > Just by reading at the code, the line
> > >
> > > [cxx.linker_so[0]] + cxx.compiler_cxx[0] + cxx.linker_so[2:]
> > >
> > > Cannot work unless cxx.compiler_cxx is a nested list. Since AIX is not
> > > that common, it is well possible that this mistake was hidden for a
> > > long time. So I would first try something like:
> > >
> > > cxx.linker_so = [cxx.linker_so[0], cxx.compiler_cxx[0]]
> >
> > +cxx.linker_so[2:]
> >

Please apply also the above bugfix to trunk and numpy-1.1, i.e. change

cxx.linker_so = [cxx.linker_so[0]] + cxx.compiler_cxx[0] + cxx.linker_so[2:] 

to

cxx.linker_so = [cxx.linker_so[0], cxx.compiler_cxx[0]] + cxx.linker_so[2:]

in line 303 of cccompiler.py in distutils.

Greetings,
-- 
Marek Wojciechowski


More information about the Numpy-discussion mailing list