Re: Building things with setup.py



Martin v. Löwis wrote:
James Stroud schrieb:
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.

That shouldn't be necessary. Linking without this should work just fine.

Unfortunately, this was not my experience.

That way, since you made libpython2.5.a a static library, you link an
entire Python interpreter into each and every extension module. This
should not be done.

Actually, a straight configure, make, install of the python2.5 source produced this library.

What happens if you omit these flags?

Please see my last message to Robert Kern.

James
.



Relevant Pages

  • Python interpreters in threads crash the application
    ... I have C application in which I have instantiated Python interpreter ... When I start the program it crashes at different places in Python code ... One such core dump is given below. ... /1: flags = STOPPED ...
    (comp.lang.python)
  • packaging python for install.
    ... I have created an App that embedds the python interpreter and I am ... now in the process of creating an installer. ... I am currently linking ...
    (comp.lang.python)
  • Re: packaging python for install.
    ... >I have created an App that embedds the python interpreter and I am ... >now in the process of creating an installer. ... I am currently linking ...
    (comp.lang.python)
  • Re: LinearAlgebra incredibly slow for eigenvalue problems
    ... when Numeric compiles it does look like the linking is being ... When I run Python interpreter with: ... Daran ...
    (comp.lang.python)
  • Re: Unsatisfied Symbols: main
    ... Ralf, any suggestions on what that book is? ... flags are bogus. ... Then study http://www.iecc.com/linker to better understand the linking process. ...
    (comp.unix.programmer)