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.

implement INSTALLER from PEP376

See original GitHub issue

when 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:closed
  • Created 10 years ago
  • Reactions:1
  • Comments:19 (19 by maintainers)

github_iconTop GitHub Comments

1reaction
ncoghlancommented, May 23, 2018

@pradyunsg Even with #5346, I believe that sudo pip uninstall systemd-python would still try to uninstall systemd-python, even though that doesn’t have a valid INSTALLER file saying pip.

0reactions
ncoghlancommented, May 6, 2019

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.

Read more comments on GitHub >

github_iconTop 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 >

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