Re: Building things with setup.py

2006-09-23 Thread Martin v. Löwis
James Stroud schrieb: > Though great for self development, I'm not so sure such > lessons should be necessary to build these tools. Yes. The lesson you should take from this is: don't try to be smarter than the authors of the software. It should build out of the box, if you follow the build instru

Re: Building things with setup.py

2006-09-23 Thread James Stroud
Robert Kern wrote: > Okay, this is possibly part of the problem. numpy.distutils handles > FORTRAN code differently than other extension modules; this is why pure > C extension modules both inside numpy and elsewehere were linking fine. > Try unsetenving $CPPFLAGS and $LDFLAGS and adding those a

Re: Building things with setup.py

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

Re: Building things with setup.py

2006-09-23 Thread James Stroud
Ben Finney wrote: > James Stroud <[EMAIL PROTECTED]> writes: > >> I try things until a build works. I consider everything I do >> until acquiring a working build as necessary. Going back to see >> exactly what I did to make things work is not a viable option > > Before trying such "I don't know w

Re: Building things with setup.py

2006-09-22 Thread Martin v. Löwis
James Stroud schrieb: > 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 >

Re: Building things with setup.py

2006-09-22 Thread Ben Finney
James Stroud <[EMAIL PROTECTED]> writes: > I try things until a build works. I consider everything I do > until acquiring a working build as necessary. Going back to see > exactly what I did to make things work is not a viable option Before trying such "I don't know what I need to do, but I'm goi

Re: Building things with setup.py

2006-09-22 Thread Robert Kern
James Stroud wrote: > Robert Kern wrote: >>> Sorry. To clarify, making libpython2.5a available in a >>> $LD_LIBRARY_PATH was necessary to build numpy and scipy. >> I don't see how that could have affected anything. Static libraries >> aren't looked up in $LD_LIBRARY_PATH. Certainly not for build-

Re: Building things with setup.py

2006-09-22 Thread James Stroud
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.

Re: Building things with setup.py

2006-09-22 Thread Martin v. Löwis
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. Still, it *should* work out of the box. I

Re: Building things with setup.py

2006-09-22 Thread James Stroud
Robert Kern wrote: > James Stroud wrote: > >> Well I added those arguments to $LDFLAGS, but it seemed like a pretty >> miserable hack, especially the "-shared" part. > > > Hmmm. Did you have $LDFLAGS set to anything (or more likely, nothing) > before? I.e. did you have something like this? >

Re: Building things with setup.py

2006-09-22 Thread James Stroud
Robert Kern wrote: >> Sorry. To clarify, making libpython2.5a available in a >> $LD_LIBRARY_PATH was necessary to build numpy and scipy. > > I don't see how that could have affected anything. Static libraries > aren't looked up in $LD_LIBRARY_PATH. Certainly not for build-time linking. OK--new

Re: Building things with setup.py

2006-09-22 Thread Robert Kern
James Stroud wrote: > Robert Kern wrote: >> James Stroud wrote: >>> The build process, by the way, required my copying libpython2.5.a to >>> $HOME/Programs/lib. >> Hmm. That doesn't quite sound right, but it's been a while since I >> compiled the interpreter from source. > > Sorry. To clarify,

Re: Building things with setup.py

2006-09-22 Thread James Stroud
Robert Kern wrote: > James Stroud wrote: >> I did build my own python 2.5, yesterday, requiring me to rebuild all >> extensions. > > Do other extensions build correctly? If so, it's beginning to look like > a problem in numpy.distutils . Actually, I just found that MySQLdb had a similar problem

Re: Building things with setup.py

2006-09-22 Thread James Stroud
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. Unfort

Re: Building things with setup.py

2006-09-22 Thread James Stroud
Robert Kern wrote: > James Stroud wrote: >> I did build my own python 2.5, yesterday, requiring me to rebuild all >> extensions. > > Do other extensions build correctly? If so, it's beginning to look like > a problem in numpy.distutils . It seems that every thing has built without incident (num

Re: Building things with setup.py

2006-09-21 Thread Martin v. Löwis
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. That way, since you made libpython2.5.

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
James Stroud wrote: > Well I added those arguments to $LDFLAGS, but it seemed like a pretty > miserable hack, especially the "-shared" part. Hmmm. Did you have $LDFLAGS set to anything (or more likely, nothing) before? I.e. did you have something like this? export LDFLAGS="" python setup.

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
James Stroud wrote: > I did build my own python 2.5, yesterday, requiring me to rebuild all > extensions. Do other extensions build correctly? If so, it's beginning to look like a problem in numpy.distutils . > Everything I do is compiled by hand as joe-user. I'm in a > situation where I can't

Re: Building things with setup.py

2006-09-21 Thread James Stroud
Robert Kern wrote: > 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. > > >> I'm running Linux FC4 on a dual intel p4 (~3.2 GHz) with sun

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
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. > I'm running Linux FC4 on a dual intel p4 (~3.2 GHz) with sundry > libraries in non-standard p

Re: Building things with setup.py

2006-09-21 Thread Robert Kern
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 d

Re: Building things with setup.py

2006-09-21 Thread James Stroud
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 d

Building things with setup.py

2006-09-21 Thread James Stroud
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