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:
- Created 3 years ago
- Reactions:14
- Comments:11 (1 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
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).
Yet Another Use Case:
Since poetry does not recognize
torch==1.10.2+cu113
as satisfyingtorch>=1.10.2
it’d be great to force poetry to ignore dependencies for packages that require specific versions of torch.