question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Do not validate path dependencies when they are not selected for installation

See original GitHub issue
  • 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).

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.

Issue Analytics

  • State:open
  • Created 5 years ago
  • Reactions:27
  • Comments:19 (4 by maintainers)

github_iconTop GitHub Comments

11reactions
rphescommented, Jan 11, 2019

I’ve also run into this issue, my use case being that I want to use a local (and editable) version of a package during development and a commit from a git repository for deployment situations.

7reactions
tall-joshcommented, Sep 15, 2020

I know it’s a MASSIVE hack but this was killing my docker build and I didn’t want two pyproject.toml so I just put the [tool.poetry.dev-dependencies] heading at the bottom of my pyproject.toml and used RUN sed -i -n '/tool.poetry.dev-dependencies/q;p' pyproject.toml before poetry install.

I know. I feel dirty, but I regret nothing!

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip: force install ignoring dependencies - Stack Overflow
pip has a --no-dependencies switch. You should use that. For more information, run pip install -h , where you'll see this line:
Read more >
Troubleshooting common problems - DOMINO SUPPORT
My run is failing because of missing packages or dependencies. Many R and Python packages are installed by default on the Domino machines,...
Read more >
Dependency Management With Python Poetry
Learn how Python Poetry will help you start new projects, maintain existing ones, and master dependency management.
Read more >
Add and assign Win32 apps to Microsoft Intune
Previously added app dependencies can't be selected in the list of added app dependencies. You can choose whether or not to install each ......
Read more >
Dependencies analysis | IntelliJ IDEA Documentation - JetBrains
In the dialog that opens, specify the scope of files that you want to analyze. Selecting the scope of the analysis. If the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found