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 = ''
|
||||
ensureDir $out/bin
|
||||
cat >> $out/bin/python << EOF
|
||||
export NIX_PYTHON_SITES=\$NIX_PYTHON_SITES:$NIX_PYTHON_SITES
|
||||
exec ${t.pythonFull}/bin/python "\$@"
|
||||
|
||||
for prog in python pydoc; do
|
||||
echo ========= prog $prog
|
||||
cat >> $out/bin/$prog << EOF
|
||||
export NIX_PYTHON_SITES=\$NIX_PYTHON_SITES:$NIX_PYTHON_SITES
|
||||
exec ${t.pythonFull}/bin/$prog "\$@"
|
||||
EOF
|
||||
chmod +x $out/bin/python
|
||||
echo chmod +x
|
||||
chmod +x $out/bin/$prog
|
||||
done
|
||||
'';
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user