forked from mirrors/nixpkgs
d97069da1a
* Updated some packages that are referenced in that section. svn path=/nixpkgs/trunk/; revision=12139
29 lines
644 B
Bash
29 lines
644 B
Bash
source $stdenv/setup
|
|
|
|
|
|
# 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() {
|
|
#substituteInPlace BitTorrent/GUI_wx/__init__.py --replace "'2.6'" "'2.8'"
|
|
python setup.py build
|
|
}
|
|
|
|
|
|
installPhase() {
|
|
python setup.py install --prefix=$out
|
|
|
|
# Create wrappers that set the environment correctly.
|
|
for i in $(cd $out/bin && ls); do
|
|
wrapProgram $out/bin/$i \
|
|
--set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH"
|
|
done
|
|
}
|
|
|
|
|
|
genericBuild
|