implement INSTALLER from PEP376
See original GitHub issuewhen pip is installing dist-info (only for wheels currently), we should write the ‘INSTALLER’ file, so pip can know later if it installed it.
http://legacy.python.org/dev/peps/pep-0376/#installer
for consistency, we could also start writing this file into egg-info metadata.
this could be useful for generating warnings when we’re uninstalling something not installed by pip.
also, we could present this information in pip list
Issue Analytics
- State:
- Created 10 years ago
- Reactions:1
- Comments:19 (19 by maintainers)
Top Results From Across the Web
PEP 376 – Database of Installed Python Distributions
The goal of this PEP is to provide a standard infrastructure to manage project distributions installed on a system, so all tools that...
Read more >installer.records
Provides an object-oriented model for handling PEP 376 RECORD files. Example#. >>> from installer.records import parse_record_file, RecordEntry >>> lines ...
Read more >Packaging and the dependency on distribute/setuptools
us PEP 376 compatibility and adds a dependency on distribute/ setuptools. ... There will be pain as projects are ported to use setup.cfg,...
Read more >How To Install NumPy In Python? - Scaler Topics
Type command pip3 install numpy for installing python3, use pip install ... It is designed to have all of the files needed for...
Read more >[Distutils] tracking requested vs dependency installs in PEP 376 ...
Sure, I'm aware of these issues, and didn't want to get too deep into implementation choices of (un)install tools. But it seems clear...
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 FreeTop 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
Top GitHub Comments
@pradyunsg Even with #5346, I believe that
sudo pip uninstall systemd-python
would still try to uninstallsystemd-python
, even though that doesn’t have a validINSTALLER
file sayingpip
.Closing this as pip populates
INSTALLER
, and has done for a while.https://github.com/pypa/pip/issues/5605 covers getting pip to skip updating packages installed by system package managers.