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.

Immitate `pip install --no-deps` / Add `--only-root`

See original GitHub issue
  • I have searched the issues of this repo and believe that this is not a duplicate.
  • I have searched the documentation and believe that my question is not covered.

Feature Request

It would be great if Poetry could support installing only the root of the project, but leave all dependencies untouched, much like the --no-deps option to pip does.

The use case is a development environment where the code being worked on is spread across several packages, and I want to keep several of them editable in the same poetry environment without having to temporarily change/remove a dependency from pyproject.toml.

Poetry ould optionally still check whether the installed packages fulfill the dependencies or not, but with such an option that developers will explicitly use, this is not necessary I suppose.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:14
  • Comments:11 (1 by maintainers)

github_iconTop GitHub Comments

2reactions
Natureshadowcommented, Nov 18, 2020

Well, this is a nice hack, but it would require one of manipulating pyproject.toml every time I start developing on such a situation, or forcing relative paths on every developer in the project (given that the library is, or might be, in a different Git repository/whatever).

1reaction
Maciej-Zwolinskicommented, May 9, 2022

Yet Another Use Case:

Since poetry does not recognize torch==1.10.2+cu113 as satisfying torch>=1.10.2 it’d be great to force poetry to ignore dependencies for packages that require specific versions of torch.

Read more comments on GitHub >

github_iconTop Results From Across the Web

pip install - pip documentation v22.3.1
“eager” - dependencies are upgraded regardless of whether the currently installed version satisfies the requirements of the upgraded package(s). “only-if-needed ...
Read more >
How to install python modules without root access?
In most situations the best solution is to rely on the so-called "user site" location (see the PEP for details) by running: pip...
Read more >
ansible.builtin.yum module – Manages packages with the yum ...
Installs, upgrade, downgrades, removes, and lists packages and groups with the yum package manager. This module only works on Python 2.
Read more >
Manpage of EMERGE - Gentoo Linux
Removes all but the highest installed version of a package from your system. Use --prune together with --verbose to show reverse dependencies or...
Read more >
Do not run pip as root - GetPageSpeed
Little did you know that the app required a newer requests Python module. The installation went through just fine, fetching and installing 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