diff options
author | Frederik Rietdijk <fridh@fridh.nl> | 2017-07-03 10:17:27 +0200 |
---|---|---|
committer | Frederik Rietdijk <fridh@fridh.nl> | 2017-07-03 10:17:27 +0200 |
commit | 196273e177f2270d6d29b56e238f184c83394133 (patch) | |
tree | 10b7f55e0d02ec5db6f3f3f727ba2e8b1bd651bc /pkgs/top-level | |
parent | 43ca91106d7d53e5e9214da12dacfdaa9e4672e4 (diff) | |
download | nixlib-196273e177f2270d6d29b56e238f184c83394133.tar nixlib-196273e177f2270d6d29b56e238f184c83394133.tar.gz nixlib-196273e177f2270d6d29b56e238f184c83394133.tar.bz2 nixlib-196273e177f2270d6d29b56e238f184c83394133.tar.lz nixlib-196273e177f2270d6d29b56e238f184c83394133.tar.xz nixlib-196273e177f2270d6d29b56e238f184c83394133.tar.zst nixlib-196273e177f2270d6d29b56e238f184c83394133.zip |
virtualenvwrapper: only add Python to $PATH, fixes #26982
Diffstat (limited to 'pkgs/top-level')
-rw-r--r-- | pkgs/top-level/python-packages.nix | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/pkgs/top-level/python-packages.nix b/pkgs/top-level/python-packages.nix index 37f78d211abb..0d540f6ca7c6 100644 --- a/pkgs/top-level/python-packages.nix +++ b/pkgs/top-level/python-packages.nix @@ -25215,9 +25215,9 @@ in { stevedore virtualenv virtualenv-clone - ] ++ optional isPy26 argparse; + ]; - patchPhase = '' + postPatch = '' for file in "virtualenvwrapper.sh" "virtualenvwrapper_lazy.sh"; do substituteInPlace "$file" --replace "which" "${pkgs.which}/bin/which" @@ -25248,7 +25248,7 @@ in { # WARNING: Don't indent the lines below because that would break EOF cat > "$wrapper" << EOF -export PATH="$PATH:\$PATH" +export PATH="${python}/bin:\$PATH" export VIRTUALENVWRAPPER_PYTHONPATH="$PYTHONPATH:$(toPythonPath $out)" source "$wrapped" EOF |