2004-02-17 21:03:12 +01:00
|
|
|
. $stdenv/setup
|
2005-04-22 20:26:04 +02:00
|
|
|
. $makeWrapper
|
2004-02-17 21:03:12 +01:00
|
|
|
|
2004-08-13 12:11:11 +02:00
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
python setup.py build
|
|
|
|
}
|
2004-02-17 21:03:12 +01:00
|
|
|
|
2004-08-13 12:11:11 +02:00
|
|
|
installPhase=installPhase
|
|
|
|
installPhase() {
|
|
|
|
python setup.py install --prefix=$out
|
|
|
|
|
|
|
|
# Create wrappers that set the environment correctly.
|
2005-04-22 20:26:04 +02: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 \
|
|
|
|
--set PYTHONPATH "$out/lib/python2.3/site-packages:$pygtk/lib/python2.3/site-packages/gtk-2.0"
|
2004-08-13 12:11:11 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
|
|
|
genericBuild
|