> Here's the simplest possible solution I can think of:
> 
>   1. Put "sage -i B" at the top of you spkg-install script

OK, that is what I thought. Thank you.

>   2. Improve the "sage -i" command so that "sage -i B" works and gives
> the newest version, i.e., so that one doesn't have to type "sage -i
> B-1.1.p2.spkg".

Hmmm, I don't think that is what I need. I have in mind installing 
FriCAS (=A) and some the FriCAS-Aldor-Interface (=B) (you know the 
problem with the Aldor license). The version number of B should be 
identical to the one of A. So in my case I must give that explicitly.

> However, I'm open to other ideas.  Ralf, what do you *wish* would be
> the natural way to specify dependencies?

Hard question. The only thing that comes to my mind is connected to 
PLONE (plone.org). Plone is written in Python and packages for Plone are 
distributed via the CheeseShop (http://pypi.python.org/pypi/). Plone is 
mangaged using "buildout". "buildout", as far as I understand is somehow 
a build system (similar to Makefiles---but that is oversimplified).

Anyway, Plone comes with a file buildout.cfg which is supposed to be 
edited by the user/administrator and which describes the layout of all 
(additional) packages. Optionally, one can include version numbers.

It might look like...

eggs =
     elementtree
     borg.project>=1.0b1,<2.0dev

(see 
http://plone.org/documentation/tutorial/buildout/installing-a-third-party-product).

If no explicit version (or range) is given the system automatically 
retrieves the latest version from a number of sites (which can also be 
specified in buildout.cfg).

I have no idea whether this "buildout" system can manage packages that 
are not written in Python, but maybe someone more familiar with Python 
can find out. Perhaps Sage might also switch to using the standard 
Python egg format instead of spkg. Again, I don't know too much about 
that, so just take it as a starting point for further reading.

Ralf

--~--~---------~--~----~------------~-------~--~----~
To post to this group, send an email to sage-devel@googlegroups.com
To unsubscribe from this group, send an email to 
sage-devel-unsubscr...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/sage-devel
URLs: http://www.sagemath.org
-~----------~----~----~----~------~----~------~--~---

Reply via email to