python wrapper: install pydoc as well
svn path=/nixpkgs/trunk/; revision=13767
This commit is contained in:
parent
91f9300897
commit
e6ab06e3fa
@ -61,11 +61,16 @@ in
|
|||||||
|
|
||||||
buildPhase = ''
|
buildPhase = ''
|
||||||
ensureDir $out/bin
|
ensureDir $out/bin
|
||||||
cat >> $out/bin/python << EOF
|
|
||||||
|
for prog in python pydoc; do
|
||||||
|
echo ========= prog $prog
|
||||||
|
cat >> $out/bin/$prog << EOF
|
||||||
export NIX_PYTHON_SITES=\$NIX_PYTHON_SITES:$NIX_PYTHON_SITES
|
export NIX_PYTHON_SITES=\$NIX_PYTHON_SITES:$NIX_PYTHON_SITES
|
||||||
exec ${t.pythonFull}/bin/python "\$@"
|
exec ${t.pythonFull}/bin/$prog "\$@"
|
||||||
EOF
|
EOF
|
||||||
chmod +x $out/bin/python
|
echo chmod +x
|
||||||
|
chmod +x $out/bin/$prog
|
||||||
|
done
|
||||||
'';
|
'';
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user