forked from mirrors/nixpkgs
fixes #2926
This commit is contained in:
parent
7911072947
commit
0d71d2b631
|
@ -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; {
|
||||
|
|
Loading…
Reference in a new issue