ok after some talk to mohjive on irc we even came up with a better
solution

the attached recipe handles the site-packages correctly and makes
gobolinux.pth obsolete.
 
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@lists.gobolinux.org
> http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel
-- 
MOSAIK Software - Christian Holzberger 
Web: http://www.mosaik-software.de


# Recipe for version 2.5.1 by Isaac Dupree <[EMAIL PROTECTED]>, on Tue Aug 14 11:05:11 BRT 2007
compile_version=1.8.5
url=http://python.org/ftp/python/2.5.1/Python-2.5.1.tar.bz2
file_size=9383651
file_md5=70084ffa561660f07de466c2c8c4842d
recipe_type=configure

configure_options=(
  "--enable-shared"
  "--with-cxx=no"
)

#environment=(
#    "PYTHONOPTIMIZE=1"
#)

post_install() {
    echo "import site" > $target/lib/python2.5/sitecustomize.py
    echo "site.addsitedir(\"/System/Links/Libraries/python2.3/site-packages/\")" >> $target/lib/python2.5/sitecustomize.py
    echo "site.addsitedir(\"/System/Links/Libraries/python2.4/site-packages/\")" >> $target/lib/python2.5/sitecustomize.py
    echo "site.addsitedir(\"/System/Links/Libraries/python2.5/site-packages/\")" >> $target/lib/python2.5/sitecustomize.py
}
_______________________________________________
gobolinux-devel mailing list
gobolinux-devel@lists.gobolinux.org
http://lists.gobolinux.org/mailman/listinfo/gobolinux-devel

Reply via email to