On Dec 4, 7:42 am, Jaap Spies <[EMAIL PROTECTED]> wrote: Hi Jaap,
> I'm trying to make an ETS-3.0.3-spkg (including Chaco_3.0.1 and Mayavi_3.1.0). > > The trouble is in building Enable. Building part of it depends on the > numpy distutils as Robert Kern pointed out. > > [EMAIL PROTECTED] numpy-1.2.0.p0]$ cat > /home/jaap/work/downloads/sage-3.2.1.rc0/local/lib/python2.5/site-packages/ > numpy/distutils/site.cfg > [DEFAULT] > library_dirs = /home/jaap/downloads/sage-3.2.1.rc0/local/lib > include_dirs = /home/jaap/downloads/sage-3.2.1.rc0/local/include > > This hides all system libraries, so for instance the x11 library could not be > found! > > Work around this is s/DEFAULT/anything/, build ETS and eventually > put back DEFAULT. But this is not working from an spkg. Ok. > Robert suggested: > > > > > This overrides all of the defaults in > > system_info.py. Unfortunately, there isn't a terribly convenient way > > out of this. numpy's spkg-install could make individual sections for > > those it is going to use to build scipy: > > > [lapack_opt] > > library_dirs = ... > > include_dirs = ... > > > [blas_opt] > > library_dirs = ... > > include_dirs = ... > > > [fftw] > > library_dirs = ... > > include_dirs = ... > > > This would leave [x11] with the correct defaults in system_info.py. > > Maybe this an idea for numpy-1.2.1.spkg? Hmmm, one would need to check the order of the flags, i.e. if all the BLAS and LAPACK flags are before the X11 ones I don't see a problem and I would consider it worth changing it. If the order were the other way around we end up pulling in "crap" from /usr/lib. Another interesting question here is which libraries are linked from numpy and scipy beyond blas, lapack and the Fortran runtime. Looking at the scipy build logs gives me headaches, so some other brave soul would have to do that :) > Another work around could be from the skpg-install from ets: > create a file $HOME/.numpy-site.cfg > with content > > [x11] > library_dirs=/usr/lib > include_dirs=/usr/include > > Did not try this yet. That would be worth a try. > Jaap > > BTW I have a working Enthought Tools Suite in Sage now. Nice. Cheers, Michael --~--~---------~--~----~------------~-------~--~----~ To post to this group, send email to sage-devel@googlegroups.com To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/sage-devel URLs: http://www.sagemath.org -~----------~----~----~----~------~----~------~--~---