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.

Add option to `pdm remove` to only remove specified packages(s)

See original GitHub issue

Is your feature request related to a problem? Please describe.

I want to reinstall a package though a manually built wheel, so I want to uninstall the package and reinstall it with pdm add ./<name of wheel>. However pdm remove <package> uninstalls not only the package, but every other package that now becomes an orphan.

Describe the solution you’d like

Maybe an option for pdm remove --only <package> that only uninstalls that package, not anything else?

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
frostmingcommented, Mar 18, 2022

Every requested feature might be useful and can solve some problems of some people. The difficult part is to design the interface, trying to make the option not too specific and can interact with other commands or options in CLI. This is a process that needs extreme carefulness and some inspiration. Otherwise the CLI will become a stacking of independent functionalities and be hard to learn and memorize.

I am not rejecting the idea, but to excuse me for not replying this issue. At the same time, I believe it is not hard for you to delete the specific packages from __pypackages__/X.Y/lib manually

0reactions
DUOLabs333commented, Mar 18, 2022

Maybe you could just remove the pypackages of that module?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Manage Dependencies - PDM
--clean : will remove packages no longer in the lockfile; --only-keep : only selected packages (using options like -G or --prod ) will...
Read more >
PDM: A smarter way to manage Python packages - InfoWorld
Python Development Master taps new features in Python to manage a project's packages without the overhead imposed by a virtual environment.
Read more >
PDM - The Blue Book - GitHub Pages
Besides, pdm sync can also remove unneeded packages if --clean option is given. All development dependencies are included as long as --prod is...
Read more >
SOLIDWORKS PDM Tutorial - Setting Permissions - YouTube
This video is for both SOLIDWORKS PDM Standard and Professional. In this video we cover how to set permissions in the PDM Administration ......
Read more >
Uninstall Products - 2019 - SOLIDWORKS Installation Help
The Program Files and Folders option is checked. Select one or more options to perform a custom uninstall, or select all options to...
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