python wrapper: install pydoc as well

svn path=/nixpkgs/trunk/; revision=13767
This commit is contained in:
Marc Weber 2009-01-14 16:23:17 +00:00
parent 91f9300897
commit e6ab06e3fa

View File

@ -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
''; '';
}; };