[gobolinux-devel] Compile 1.9.0 and python recipes

Jonas Karlsson jonka750 at student.liu.se
Sun Dec 2 22:33:56 NZDT 2007


On Sat, 01 Dec 2007 12:26:37 +0100, Giambattista Bloisi <giamby at infinito.it> wrote:

> Hi all,
>     I just noted that it looks like Compile needs PYTHONPATH to get the
> python version (lines 1038-1040 of Compile). If you don't have it set
> you get an error.
>
>
> [ "$PYTHONPATH" ] || Die "Environment variable PYTHONPATH is not set.
> Set it to something like '.:$goboLibraries/python2.3/site-packages'."
>    build_tree_if "true"
> sitepackages="$target/lib/python${PYTHONPATH##*/python}"
>
>
> Instead of this, what about getting the python version as in the
> Unsermake recipe ?
>
>     pythonversion=`python --version 2>&1 | awk {'print $2'} | cut -b1-3`
>     unsermakedir=$target/lib/python${pythonversion}/site-packages/unsermake
>
>
Yes, similar functionality is already in the Compile CVS.

-- 
/Jonas

Using Opera's revolutionary e-mail client: http://www.opera.com/mail/


More information about the gobolinux-devel mailing list