Hi folks,

I've wanted to make a "minimal sage" for some time.  I finally got
motivated to do some work on it. Don't ask what I _should_ have been
doing.
I'm working with gentoo linux ... it has nice package management and
many of the things I needed were included already.  I'll make as many
comments as I can to help other reconstruct what I did.

Essentially, I did these steps:

1) Extracted sage-2.3 from the overall sage distribution.

tar xf sage-2.3      # the top level distro
cd sage-2.3/spkg/standard
tar xf sage-2.3      # the specific sage code
mv sage-2.3 workdir

2) Use a different setup.py and a edit one small thing

cd workdir
# add marksetup.py to workdir
cp other/location/marksetup.py ./
# fix one path problem
sed -e 's:../../../:../../:' sage/libs/cf/cf.pyxe > tmpfile
mv tmpfile sage/libs/cf/cf.pyxe

3) Build the csage stuff by hand and make it available
<<this library build isn't quite right>>

cd sage-2.3/spkg/standard
tar xf sage_c_lib-2.3.spkg
cd sage_c_lib-2.3/src
gcc -fPIC -g -c *.c -I/usr/include/python2.4
gcc -shared -Wl,-soname,libcsage.so -o libcsage.so *.o
ln -s libcsage.so csage.so
cp *.so workdir/mylibs/
cp *.h workdir/myinc/

4) Make sure the following programs are installed via portage
   (gentoo's package manager):
<< you might need more ... i already had a bunch of stuff installed>>
<< you might have to unmask some of these as well (a gentoo thing)>>

maxima 5.9.3
gsl 1.8
ntl 5.4-r1
singular 3.0.2.1 (i used my own ebuild, but the built in should be ok)
pexpect .999
blas-atlas-3.7.24
mpfr-2.2.1_p1
numpy-1.0.1-r1

5) use my shoddy ebuilds for these:
<< you will need to fish out singular-3.0.2-gentoo.diff for factory
   to use the ebuild I have here>>

pari 2.3.1 (simply a version bump from 2.3.0 in portage)
factory 3.0.2.1 (from singular)
iml-1.0.1
mpfi-1.3.4
mwrank-061003

6) Build it:
python marksetup.py build

7) Figure out everthing that built, but has run time errors!
<<to be determined>>
I haven't tested the produced code AT ALL.  It may well be complete
junk.
I just wanted to get what I've done up so others can (maybe) take
advantage of it
and/or make progress on it.


Files (ebuilds and marksetup.py) can be found at:
http://www.cs.pitt.edu/~fenner/work/projects/minimal-sage/minimal-sage.tgz

Regards,
Mark


--~--~---------~--~----~------------~-------~--~----~
To post to this group, send email to [email protected]
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://sage.scipy.org/sage/ and http://modular.math.washington.edu/sage/
-~----------~----~----~----~------~----~------~--~---

Reply via email to