Re: [sabayon] where are things installed and run from now?



Hi John,
	I'm not really following your mail, but it does work fine here and I
don't have any stale stuff lying around. Here's how its supposed to
work.

  1) All the python that was installed in $(datadir)/sabayon is
     not installed in $(pythondir)/sabayon

  2) The wrapper shell scripts are gone and replaced with the
     python main scripts that used to be in $(datadir)/sabayon.
     So, e.g. sabayon.py got renamed to sabayon and is installed
     in /usr/sbin

  3) The python code is now installed in the system python path so we 
     don't need to setup $PYTHONPATH etc. anymore

  4) The python code is also now namespaced - so the userprofile module 
     is now the sabayon.userprofile module. So, the main scripts import 
     from the sabayon namespace (from sabayon import userprofile), but
     the rest of the code doesn't need to use the namespace

  5) The sabayon and sabayon/sources directory are now modules - that's 
     why they have __init__.py scripts

  6) Making the ModuleLoader stuff was the most complicated - 
     basically, the ModuleLoader now does

       from sources import mozilladelegate

     and each of the sources must do something like

       try:
           import userprofile
       except:
           from sabayon import userprofile

     Essentially, they must go back through the sabayon namespace 
     again, but the first attempted import is to make it work with the 
     unit tests.

     Dunno, it might be worthwhile re-thinking how the ModuleLoader 
     works altogether.

Cheers,
Mark.




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]