3
0
Fork 0
forked from mirrors/nixpkgs
This commit is contained in:
Domen Kožar 2014-06-15 16:05:09 +02:00
parent 7911072947
commit 0d71d2b631

View file

@ -156,12 +156,14 @@ python.stdenv.mkDerivation (attrs // {
'';
shellHook = attrs.shellHook or ''
mkdir -p /tmp/$name/lib/${python.libPrefix}/site-packages
${preShellHook}
export PATH="/tmp/$name/bin:$PATH"
export PYTHONPATH="/tmp/$name/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
python setup.py develop --prefix /tmp/$name
${postShellHook}
if test -e setup.py; then
mkdir -p /tmp/$name/lib/${python.libPrefix}/site-packages
${preShellHook}
export PATH="/tmp/$name/bin:$PATH"
export PYTHONPATH="/tmp/$name/lib/${python.libPrefix}/site-packages:$PYTHONPATH"
${python}/bin/${python.executable} setup.py develop --prefix /tmp/$name
${postShellHook}
fi
'';
meta = with lib.maintainers; {