[gobolinux-devel] python .pth file support in /System/Links/Librarys/python2.X/site-packages

Christian Holzberger gobo at mosaik-software.de
Tue Apr 22 07:11:45 NZST 2008


ok ive made an error, a recursion problem exist. 

i came up with a different solution, 
under /Programs/Python/Settings i created gobopython which contains all
pythonpaths we need to have additionaly (just a path line for line)

in /Programs/Python/2.5.1/lib/python2.5/site-packages i added: 

gobo_python_setup.py: which sets up site dirs (its attached) it wont run
twice!  
and in gobolinux.pth gobo_python_setup.py is just started, this solution
works over here. 

i think the file in Settings should be renamed, any hints for usefull
names? and the path in gobo_python_setup.py should not be hardcoded (so
python can installed to another prefix).

how do you like this solution any suggestions?

On Mon, 2008-04-21 at 20:36 +0200, Christian Holzberger wrote:
> hi,
> 
> iam using gobo for a few days now and i really must admit that i liek
> the directory layout very much. 
> 
> in the python installation (tested with 2.5 and 2.5.1) there is an error
> regaring .pth files in the system wide site-packages dir. 
> 
> (pygtk error, vobject error etc.) 
> 
> if i add 
> import site; known =
> site.addsitedir("/System/Links/Libraries/python2.5/site-packages/")
>  
> python will find my installed addons and load the .pth files just right 
> 
> i attached an corrected version of gobolinux.pth to this message and
> hope that it will get part of the standard python distribytuin in gobo.
> (to not have to patch it by hand everytime a new version comes out) 
> 
> 
> - christian  (molle)
> _______________________________________________
> gobolinux-devel mailing list
> gobolinux-devel at lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel
-- 
MOSAIK Software - Christian Holzberger 
Web: http://www.mosaik-software.de


-------------- next part --------------
import gobo_python_setup; gobo_python_setup.gobo_setup()
-------------- next part --------------
A non-text attachment was scrubbed...
Name: gobo_python_setup.py
Type: text/x-python
Size: 299 bytes
Desc: not available
Url : http://lists.gobolinux.org/pipermail/gobolinux-devel/attachments/20080421/a855b25a/attachment.py 
-------------- next part --------------
/System/Links/Libraries/python2.3/site-packages/
/System/Links/Libraries/python2.4/site-packages/
/System/Links/Libraries/python2.5/site-packages/


More information about the gobolinux-devel mailing list