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.

RFE: drop bundled `distlib`

See original GitHub issue

Looks like pip and virtualenv ar eonly two remaining modules which are still somehow connected with distlib. pip seems is only bundlig distlib.

[tkloczko@barrel SPECS]$ rpm -ql python-pip| grep distlib
/usr/lib/python3.8/site-packages/pip/_vendor/distlib
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__init__.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/compat.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/database.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/index.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/locators.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/manifest.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/markers.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/metadata.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/resources.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/scripts.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/util.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/version.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/__pycache__/wheel.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__init__.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/__init__.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/__init__.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/__init__.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/misc.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/misc.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/misc.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/shutil.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/shutil.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/shutil.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/sysconfig.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/sysconfig.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/sysconfig.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/tarfile.cpython-38.opt-1.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/tarfile.cpython-38.opt-2.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/__pycache__/tarfile.cpython-38.pyc
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/misc.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/shutil.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/sysconfig.cfg
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/sysconfig.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/_backport/tarfile.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/compat.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/database.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/index.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/locators.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/manifest.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/markers.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/metadata.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/resources.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/scripts.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/t32.exe
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/t64.exe
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/util.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/version.py
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/w32.exe
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/w64.exe
/usr/lib/python3.8/site-packages/pip/_vendor/distlib/wheel.py

I was not able to find anything else which still may be using distlib. Going as well to create similar ticket for virtualenv.

Issue Analytics

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

github_iconTop GitHub Comments

3reactions
pradyunsgcommented, Sep 2, 2021

None the less, @kloczek’s reasoning for filing this issue:

Simple I see that this module badly maintained.

This isn’t based on facts, and isn’t a good reason to drop distlib.

Given their history of making weird requests to Python projects (asking many poetry/flit-based projects to add a setup.py, among other things) – they’ve filed 100s issues on across many projects – I’m inclined to suggest that folks don’t spend extended periods of time or energy on this issue.

1reaction
pradyunsgcommented, Sep 2, 2021

FWIW, an alternative for generating script wrappers exists in installer now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Recursive Feature Elimination (RFE) for Feature Selection in ...
RFE is an efficient approach for eliminating features from a training dataset for feature selection. How to use RFE for feature selection for ......
Read more >
User's Guide - IBM
DISTLIB (AOSFB) /* in this distribution library. */. ... function SYSMODs are packaged in RELFILE format.) • The inline method packages the ...
Read more >
Behavior Graph - Joe Sandbox
Found dropped PE file which has not been started or loaded ... extension\.venv\lib\python3.6\site-packages\pip\_vendor\distlib\w32.exe, Jump to dropped file.
Read more >
Some inner class files get "lost" and aren't regenerated when ...
class file for the anonymous inner class is not present. The requires an explicit compile of the source file or a rebuild of...
Read more >
Release Notes - Java Bug System - OpenJDK
Drop down of a Choice changed to enabled state has a disabled like appearance ... [JDK-6560028] - The openjdk build does not create...
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