diff --git a/pkgs/development/interpreters/python-new/2.5/default.nix b/pkgs/development/interpreters/python-new/2.5/default.nix index 588db877602c..dfe86683b506 100644 --- a/pkgs/development/interpreters/python-new/2.5/default.nix +++ b/pkgs/development/interpreters/python-new/2.5/default.nix @@ -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 ''; };