Install wrappers for Twisted binaries to ensure a correct ${PYTHONPATH}.
svn path=/nixpkgs/trunk/; revision=12891
This commit is contained in:
parent
656127373d
commit
f3ae22fa5f
@ -1,16 +1,17 @@
|
|||||||
{stdenv, fetchurl, python, ZopeInterface}:
|
{stdenv, fetchurl, python, ZopeInterface, makeWrapper}:
|
||||||
|
|
||||||
stdenv.mkDerivation {
|
stdenv.mkDerivation {
|
||||||
name = "twisted-8.1.0";
|
name = "twisted-8.1.0";
|
||||||
|
|
||||||
src = fetchurl {
|
src = fetchurl {
|
||||||
url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
|
url = http://tmrc.mit.edu/mirror/twisted/Twisted/8.1/Twisted-8.1.0.tar.bz2;
|
||||||
sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
|
sha256 = "0q25zbr4xzknaghha72mq57kh53qw1bf8csgp63pm9sfi72qhirl";
|
||||||
};
|
};
|
||||||
|
|
||||||
buildInputs = [python];
|
buildInputs = [python];
|
||||||
|
propagatedBuildInputs = [ZopeInterface makeWrapper];
|
||||||
propagatedBuildInputs = [ZopeInterface];
|
buildPhase = "true";
|
||||||
|
installCommand =
|
||||||
installPhase = "PYTHONPATH=$(toPythonPath $out):$PYTHONPATH; python ./setup.py install --prefix=$out";
|
''
|
||||||
|
python ./setup.py install --prefix=$out --install-lib=$(toPythonPath $out) -O1
|
||||||
|
for n in $out/bin/*; do wrapProgram $n --set PYTHONPATH "$(toPythonPath $out):$PYTHONPATH:\$PYTHONPATH"; done
|
||||||
|
'';
|
||||||
}
|
}
|
||||||
|
@ -4602,7 +4602,7 @@ let
|
|||||||
};
|
};
|
||||||
|
|
||||||
twisted = import ../development/python-modules/twisted {
|
twisted = import ../development/python-modules/twisted {
|
||||||
inherit fetchurl stdenv python ZopeInterface;
|
inherit fetchurl stdenv python ZopeInterface makeWrapper;
|
||||||
};
|
};
|
||||||
|
|
||||||
ZopeInterface = import ../development/python-modules/ZopeInterface {
|
ZopeInterface = import ../development/python-modules/ZopeInterface {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user