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.

Support filtering "system" dependencies

See original GitHub issue

pip_api.installed_distributions() returns every visible distribution, which can potentially include distributions provided by the system/system package manager.

Issuing messages for these might not be desirable default behavior, for a few reasons:

  • System-installed dependencies might be required by the system, and thus cannot be safely upgraded
  • System-installed dependencies might be installed via a mechanism other than pip, so issued guidance might not always be applicable.
  • System-installed dependencies might be patched by distribution maintainers to remove known vulnerabilities, without updating the version number.

As such, it probably makes sense for the CLI to have option(s) that allow the user to enable (or disable) filtering of dependencies that look like they’re supplied by the system. This, in turn, requires us to come up with a reliable way of determining whether a given dependency is a “system” one.

Issue Analytics

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

github_iconTop GitHub Comments

1reaction
woodruffwcommented, Oct 8, 2021

So I’d need to make a change to expose this functionality in pip-api.

Opened upstream tracking: https://github.com/di/pip-api/issues/101

1reaction
tetsuo-cppcommented, Oct 8, 2021

Since this is going to involve manipulating virtual environments, it might be best to do #50 first.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Support filtering "system" dependencies #7 - pypa/pip-audit
System -installed dependencies might be installed via a mechanism other than pip , so issued guidance might not always be applicable. System- ...
Read more >
Filtering issues with dependencies | Atlassian Support
When planning work across multiple streams, filtering issues with dependencies helps to quickly narrow down any potential blockers that need ...
Read more >
What is a "Filter List" dependency? - Accompa
A "Filter List" field dependency causes the values in a picklist field to be dynamically filtered based on the value selected by the...
Read more >
Filtering Files in Dependency Scanners
When you run the Static and Dynamic scanning wizards, you may find that they list as dependencies certain files that you do not...
Read more >
Apache Maven Filtering – Project Dependencies
The following is a list of compile dependencies for this project. ... org.apache.maven.shared:maven-filtering:jar:3.3.0 [Information] ...
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