Do not validate path dependencies when they are not selected for installation #668
Description
- I am on the latest Poetry version.
- I have searched the issues of this repo and believe that this is not a duplicate.
- If an exception occurs when executing a command, I executed it again in debug mode (
-vvv
option).
- OS version and name: Ubuntu 18.10
- Poetry version: 0.12.10
- Link of a Gist with the contents of your pyproject.toml file: https://gist.github.com/spither/47f144b1f355990d562b5ba92bf15fe3
Issue
I cannot run poetry install --no-dev
away from my development environment because I have dev-only path based dependencies.
> poetry install --no-dev
[ValueError]
Directory ../dev-only does not exist
The error is correct, the directory doesn't exist, but it's only listed as a dev-dependency and I'm trying to install --no-dev
. I was not expecting any dev-dependency checks to take place.
In my case I'm trying to install the non-dev dependencies for a Django site deployment. The path based dev-dependencies only exist in development, not on the deployment system.