1
0
Fork 1
mirror of https://github.com/NixOS/nixpkgs.git synced 2024-11-21 13:10:33 +00:00

python: make pdb.py available as bin/pdb and bin/pdb${python.majorVersion}

This commit is contained in:
Florian Friesdorf 2012-07-20 20:11:04 +02:00
parent 62f698dfd3
commit 3665e02901
3 changed files with 5 additions and 1 deletions

View file

@ -60,6 +60,8 @@ let
postInstall =
''
rm -rf "$out/lib/python${majorVersion}/test"
ln -s $out/lib/python${majorVersion}/pdb.py $out/bin/pdb
ln -s $out/lib/python${majorVersion}/pdb.py $out/bin/pdb${majorVersion}
'';
passthru = {

View file

@ -74,6 +74,8 @@ let
postInstall =
''
rm -rf "$out/lib/python${majorVersion}/test"
ln -s $out/lib/python${majorVersion}/pdb.py $out/bin/pdb
ln -s $out/lib/python${majorVersion}/pdb.py $out/bin/pdb${majorVersion}
'';
passthru = {

View file

@ -11,7 +11,7 @@ stdenv.mkDerivation {
unpackPhase = "true";
installPhase = ''
mkdir -p "$out/bin"
for prg in 2to3 idle pydoc python python-config python${python.majorVersion} python${python.majorVersion}-config smtpd.py; do
for prg in 2to3 idle pdb pdb${python.majorVersion} pydoc python python-config python${python.majorVersion} python${python.majorVersion}-config smtpd.py; do
makeWrapper "$python/bin/$prg" "$out/bin/$prg" --suffix PYTHONPATH : "$PYTHONPATH"
done
ensureDir "$out/share"