e23253aab1915290bf0bee99525def6f077dcc18

Author
Michael Aquilina <michaelaquilina@gmail.com>
Committer
GitHub <noreply@github.com>
Date

Message

Merge pull request #213 from rnc/ISSUE148

Install pipenv in editable mode to match install_requirements

Diff

 1diff --git a/autoswitch_virtualenv.plugin.zsh b/autoswitch_virtualenv.plugin.zsh
 2index 2af48fd73076b7bc5df259db22ec5871ada6c28f..12d024f49b2408f9e11ff166e7dfcf80053353a7 100644
 3--- a/autoswitch_virtualenv.plugin.zsh
 4+++ b/autoswitch_virtualenv.plugin.zsh
 5@@ -325,7 +325,12 @@ function mkvenv()
 6             return
 7         fi
 8         # TODO: detect if this is already installed
 9-        pipenv install --dev $params
10+        if [[ "$AUTOSWITCH_PIPINSTALL" = "FULL" ]]
11+        then
12+            pipenv install --dev $params
13+        else
14+            pipenv install --dev --editable . $params
15+        fi
16         _activate_pipenv
17         return
18     elif [[ "$venv_type" == "poetry" ]]; then