
"Each time you add or remove a dependency, PDM recomputes the project's dependency graph, which may take some time. When you remove a dependency, any dependencies that depend solely on the one you removed are not automatically removed, but they can be cleaned up semi-automatically. (More on this later.) To list the dependencies in a project, use pdm list. Or you can use pdm list --graph to show dependencies in a tree, so that you can see at-a-glance which packages depend on which other packages."
"pdm install, the more commonly used of the two, should be your first choice. It will create the lock file-the description of package versions to use with the project-and then install the dependencies from that. pdm sync uses a slightly different strategy. If a lock file doesn't already exist, it will throw an error; otherwise, it will install the dependencies listed in the existing lock file."
PDM recomputes the project dependency graph whenever dependencies are added or removed, and this can take some time. Removing a dependency does not automatically remove packages that depended solely on it; such packages can be cleaned up semi-automatically. Use pdm list to view dependencies and pdm list --graph to display a dependency tree showing which packages rely on others. Use pdm install to create a lock file and install resolved versions; use pdm sync only when a lock file already exists to install from it without recomputing. Dependencies installed by default are not labeled by role.
Read at InfoWorld
Unable to calculate read time
Collection
[
|
...
]