2005-12-05 15:11:09 +01:00
|
|
|
source $stdenv/setup
|
2004-02-17 21:03:12 +01:00
|
|
|
|
2006-12-13 21:30:09 +01: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
|
|
|
|
|
2007-05-31 15:43:13 +02:00
|
|
|
buildPhase=buildPhase
|
|
|
|
buildPhase() {
|
|
|
|
#substituteInPlace BitTorrent/GUI_wx/__init__.py --replace "'2.6'" "'2.8'"
|
|
|
|
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
|
2008-01-18 12:28:41 +01:00
|
|
|
wrapProgram $out/bin/$i \
|
2006-12-13 21:30:09 +01:00
|
|
|
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
2004-08-13 12:11:11 +02:00
|
|
|
done
|
|
|
|
}
|
|
|
|
|
2008-01-18 12:28:41 +01:00
|
|
|
genericBuild
|