2005-12-05 14:11:09 +00:00
|
|
|
source $stdenv/setup
|
|
|
|
source $makeWrapper
|
2004-02-17 20:03:12 +00:00
|
|
|
|
2006-12-13 20:30:09 +00:00
|
|
|
# Workaround for:
|
|
|
|
# File "...-python-2.4.4/lib/python2.4/posixpath.py", line 62, in join
|
|
|
|
# elif path == '' or path.endswith('/'):
|
|
|
|
# AttributeError: 'NoneType' object has no attribute 'endswith'
|
|
|
|
export HOME=$TMP
|
|
|
|
|
|
|
|
buildPhase="python setup.py build"
|
2004-02-17 20:03:12 +00:00
|
|
|
|
2004-08-13 11:11:11 +01:00
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
|
|
|
python setup.py install --prefix=$out
|
|
|
|
|
|
|
|
# Create wrappers that set the environment correctly.
|
2005-04-22 19:26:04 +01:00
|
|
|
for i in $(cd $out/bin && ls); do
|
|
|
|
# Note: the GUI apps except to be in a directory called `bin',
|
|
|
|
# so don't move them.
|
|
|
|
mv $out/bin/$i $out/bin/.orig-$i
|
|
|
|
makeWrapper $out/bin/.orig-$i $out/bin/$i \
|
2006-12-13 20:30:09 +00:00
|
|
|
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
2004-08-13 11:11:11 +01:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|