Re: Building things with setup.py



Martin v. Löwis wrote:
James Stroud schrieb:

What happens if you omit these flags?

Please see my last message to Robert Kern.


If you don't want me to help you, that's fine, then I won't.

I couldn't find an answer to this question in any of your
messages in this thread.

Sorry, I didn't mean to sound dismissive. Perhaps I misunderstood what "these" actually referred to. The results of omitting these flags specifically:

"-lpython2.5 -lpthread -lm -lutil -ldl -shared"

Are posted here for both numpy and scipy:

http://www.jamesstroud.com/build-scipy-logs/build-scipy-py2.5-euler.txt
http://www.jamesstroud.com/build-scipy-logs/build-numpy-py2.5-euler.txt

I have not tried unsetenv'ing $LDFLAGS entirely, an option which did not occur to me given their necessity for just about everything else. If you think that this is a worthwhile experiment, I will run it.


> Still, it *should* work out of the box. If it doesn't, it
> means there is an error somewhere. If you don't want to
> help finding the error, that's fine, too (but please say
> so, because that will constrain the solution space).

I think I would like to know how to avoid or correct these sort of issues in the future, which seem to be limited, for me at least, to scipy and numpy, with the possible exception of MySQLdb and its dependency on zlib. Ideally, I would like to understand exactly what causes these errors in addition to knowing what I can do to correct them in the future.


James


--
James Stroud
UCLA-DOE Institute for Genomics and Proteomics
Box 951570
Los Angeles, CA 90095

http://www.jamesstroud.com/
.



Relevant Pages

  • Re: advice on stripped down python
    ... No. numpy and scipy require 2.3. ... Robert Kern ... "I have come to believe that the whole world is an enigma, a harmless enigma ...
    (comp.lang.python)
  • Re: Building things with setup.py
    ... that's why it it complains about so many missing ... As per your and Robert Kern's suggestions, unsetenv'ing $LDFLAGS and $CPPFLAGS indeed did the trick for numpy, scipy, and mysqldb. ...
    (comp.lang.python)
  • Re: Building things with setup.py
    ... James Stroud wrote: ... why would this not be caught by the developers of scipy and numpy? ... What factors go into needing to specify libraries and to properly link .so files manually? ... I'm running Linux FC4 on a dual intel p4 with sundry libraries in non-standard places. ...
    (comp.lang.python)
  • NumPy 1.0.3.1 and SciPy 0.5.2.1 released
    ... I'm pleased to announce the release of NumPy 1.0.3.1 and SciPy 0.5.2.1 ... These are minor bug fix releases, which mainly addresses some build issues. ... NumPy 1.0.3.1 Bug-fixes ...
    (comp.lang.python.announce)
  • Re: Numpy array index handling
    ... Also I suggest you don't use SciPy and Matplotlib unless you ... Import from numpy instead. ... Get the latest installer from: ... At least that is what makes me as a scientist happy with Python:) ...
    (comp.lang.python)