Building things with setup.py

Robert Kern robert.kern at gmail.com
Thu Sep 21 23:11:53 EDT 2006


James Stroud wrote:
> Hello All,
> 
> This is annoying. I am trying to build scipy right now but every .so 
> file requires my adding "-lpython2.5 -lpthread -lm -lutil -ldl -shared" 
> to the ld flags.
> 
> Main Question: When building with "setup.py", where can I include this 
> information so I don't have to link every .so file by hand?

If it's actually necessary,

   python setup.py build_ext -lmylib

> Also, why would this not be caught by the developers of scipy and numpy? 

Because we've never seen it before. There's no reason that you should have to 
add those libraries manually. Can you post your build log (the one that fails) 
to scipy-dev?

   http://www.scipy.org/Mailing_Lists

> What factors go into needing to specify libraries and to properly link 
> .so files manually? Certainly the enthought didn't forget to test the 
> build process, so why would my machine be special in this regard?
 >
> I'm running Linux FC4 on a dual intel p4 (~3.2 GHz) with sundry 
> libraries in non-standard places. Is this non-standard part what's 
> killing me?

Possibly. Won't know more until I see the build log.

-- 
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 Python-list mailing list