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 `--ignore` flag to `pip check`

See original GitHub issue

What’s the problem this feature will solve?

We currently use pip check quite a bit in conda-forge to make sure that the dependency specifications that the dependencies that we have are correct.

However, some packages pip sometimes specifies as dependencies can also be proper “system”-packages which do not register as pip/python packages. That makes it hard to run pip check because of these “false negatives”. Some examples are cmake, ninja, and likely some others.

Describe the solution you’d like

If we could add a --ignore flag and a corresponding environment variable that could help us quite a bit.

Alternative Solutions

Another solution would be to make pip check check if e.g. the ninja binary is on the $PATH – but that’s brittle. Another solution would be to register system packages as pip installed packages but that’s also not a proper solution.

Additional context

https://github.com/FFY00/meson-python/issues/60

Code of Conduct

Issue Analytics

  • State:open
  • Created a year ago
  • Reactions:3
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
pradyunsgcommented, May 31, 2022

This seems reasonable! A PR implementing this will be welcome. 😃

0reactions
q0wcommented, Jun 2, 2022

if you want env PIP_CHECK_IGNORE_PACKAGES, then flag should be --check-ignore-packages (like pip check --check-ignore-packages) because pip automatically converts all flags to env variables.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to ignore compiler flags in pip? - python - Stack Overflow
I finally find a solution. First install clang-omp via brew install clang-omp . Then link clang-omp to gcc-7 via sudo ln -s ...
Read more >
pip install - pip documentation v22.3.1
Ignore the installed packages, overwriting them. This can break your system if the existing package is of a different version or was installed...
Read more >
pip-check-reqs - PyPI
Added –skip-incompatible flag to pip-extra-reqs , which makes it ignore requirements with environment markers that are incompatible with the current environment ...
Read more >
Usage — pydocstyle 1.0.0 documentation
When using any of the --select , --ignore , --add-select , or --add-ignore command line flags, it is possible to pass a prefix...
Read more >
warnings — Warning control — Python 3.11.1 documentation
Notably, this “ignored by default” list includes DeprecationWarning (for every module except __main__ ), which means developers should make sure to test their ......
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