Hello,

There has been a lot of talk recently about totally refactoring the way
that a Sage installation is structured, which is great, but will no
doubt take a lot of effort.

Looking at the directory structure of lmonade (and talking to Burcin on
this list about it a bit), as well as `R. Andrew Ohana's recent work`_
on command line option parsing, has made me wonder if we couldn't
perhaps do something relatively simple first to pave the way, namely to
try to "segregate development from production" and embrace a more
`FHS`_-like directory structure (all paths below are relative to
$SAGE_ROOT):

- Move all various non-SPKG repositories to devel/sage/
  - devel/sage-foo/ -> devel/sagelib-foo/
  - devel/sagenb-main/ -> devel/sagenb/
  - data/extcode/ -> devel/sageext/
  - local/bin/ -> devel/sagebin/
  - host other repositories that Sage developers might want to hack on
    at devel/foo/
  - leave SPKG repos where they are for now
- Make `sage -b` build directly to
  local/lib/python/site-packages/sage-foo/ instead of to
  devel/sagelib-foo/build/
- Make `sage -b` also run `sage --python devel/sagenb/setup.py develop`,
  copy relevant files from devel/sagebin to local/bin/ , and copy
  relevant files from devel/sageext/ to... somewhere, perhaps share/sage/ ?

Does this sound feasible? Advisable? The idea is that eventually we will
consolidate the four devel/sage*/ repos into one, perhaps along with a
consolidation of the SPKG repos (or a ebuild-based replacement for them)
and put them in a single directory, devel/sage/ , without worrying about
the fact that we need to install files in various different places.

Something else: Why do we even have local/ ? Why not just have bin/,
lib/, etc. in the root directory? lmonade has local/ as well. I was
under the impression that Gentoo Prefix doesn't have $EPREFIX/local .

.. _R. Andrew Ohana's recent work: http://github.com/ohanar/sagescripts
.. _FHS: http://en.wikipedia.org/wiki/Filesystem_Hierarchy_Standard

-Keshav

----
Join us in #sagemath on irc.freenode.net !

-- 
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
URL: http://www.sagemath.org

Reply via email to