Re: Installing ETS-3.0.3 in Sage
Robert Kern wrote:
> On Mon, Dec 1, 2008 at 18:51, Jaap Spies <j.spies@...> wrote:
>> Robert Kern wrote:
>>> On Mon, Dec 1, 2008 at 18:28, Jaap Spies <j.spies@...> wrote:
>>>> Robert Kern wrote:
>> /lib', 'search_static_first': '0'}
>>> Okay, that's just odd. Did the Sage packager of numpy modify
>>> numpy/distutils/system_info.py at all?
>> I asked around, but with no reslut yet.
>
> I've looked at the numpy-1.2.0.p0.spkg, and there doesn't seem to be
> anything suspicious. Is that the version of numpy you have installed?
>
Yes.
>>> Anyways, the workaround is to make a file ~/.numpy-site.cfg with the contents
>>>
>>> [x11]
>>> library_dirs=/usr/lib
>>> include_dirs=/usr/include
>>>
>> Don't know. How will this help installing ets with my install-pkg?
>
> This file will tell numpy.distutils (and consequently Enable's setup
> scripts) to look in those locations for the X11 libraries and headers
> and ignore the defaults. The defaults appear to be broken in your
> installation; I don't know why.
>
>> Not only for me, but also for the person who downloads this package?
>
> If Sage's numpy has been altered somehow to not look in the default
> locations for X11, then the user will need to provide a
> ~/.numpy-site.cfg file to tell it.
>
>> To be honnest I had no idea that numpy is causing this trouble!
>
> We use numpy.distutils to build the extension modules in Enable. In
> particular, we use its configuration system to discover where the X11
> libraries are located. There are defaults set in that module that
> should have discovered your X11 libraries. I'm not really sure why
> they are different.
>
Ok, I'm really frustrated that with a standard configuration in
a standard OS (Fedora 9 and Fedora 10) things are so difficult.
I'm not only refering to ETS but also to Jmol, the 3D include for
Sage (I prefer Mayavi2 :)!)
> Let's check a couple of other things. At the shell:
>
Ok, just before I go to sleep (2.30 AM local time)
> $ locate "*site.cfg"
[jaap <at> paix sage-3.2.1.rc0]$ locate "*site.cfg"
/etc/a2ps-site.cfg
/home/jaap/sage-3.0.4.alpha1/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-2.10/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-2.10.3/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-2.10.4/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-2.11/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-2.8.15/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.0/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.0.1/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.0.2/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.0.3/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.0.4/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.0.6/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.1.1/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.1.2/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.1.3/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.1.4/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.2/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.2.1.alpha1/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.2.1.alpha2/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/home/jaap/work/downloads/sage-3.2.1.rc0/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
/usr/local/sage/local/lib/python2.5/site-packages/numpy/distutils/site.cfg
[jaap <at> paix sage-3.2.1.rc0]$
This surprises me somehow :)
>
>>From Python:
>
> from numpy.distutils import system_info
> print system_info.default_x11_lib_dirs
> print system_info.default_x11_include_dirs
> print system_info.default_lib_dirs
> print system_info.default_include_dirs
>
[jaap <at> paix sage-3.2.1.rc0]$ python
Python 2.5.2 (r252:60911, Nov 29 2008, 14:50:32)
[GCC 4.3.0 20080428 (Red Hat 4.3.0-8)] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from numpy.distutils import system_info
>>> print system_info.default_x11_lib_dirs
['/usr/X11R6/lib', '/usr/X11/lib', '/usr/lib']
>>> print system_info.default_x11_include_dirs
['/usr/X11R6/include', '/usr/X11/include', '/usr/include']
>>> print system_info.default_lib_dirs
['/home/jaap/downloads/sage-3.2.1.rc0/local/lib', '/usr/local/lib', '/usr/lib']
>>> print system_info.default_include_dirs
['/usr/local/include', '/usr/include', '/home/jaap/downloads/sage-3.2.1.rc0/local/include']
>>>
Jaap