diff --git a/tasks.py b/tasks.py index 68ce44a7f442a462242c241d2702536639f37351..ddadc217da0fc6239f19a0bde89841fc09654799 100644 --- a/tasks.py +++ b/tasks.py @@ -57,12 +57,13 @@ def install_nacl(library): @task def install(dev=False): - cmd = "pip install -e file://$PWD#egg=pynacl" - if dev: - cmd += "[tests]" - - run(cmd) + # Install once to get the tests extra + run("pip install file://$PWD#egg=pynacl[tests]") + # Install again to get an editable install + run("pip install -e .") + else: + run("pip install .") @task