Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop wheel and setuptools from shared libs #1078

Merged
merged 7 commits into from
Dec 1, 2023

Conversation

chrysle
Copy link
Contributor

@chrysle chrysle commented Oct 8, 2023

And enable running and installing the remaining shared library pip using pipx run. I have transferred the hack from #970 per #951 (comment) for use with pip.

  • I have added an entry to docs/changelog.md

Summary of changes

Test plan

Tested by running

pipx run wheel
pipx run pip
pipx install pip

And enable running the remaining shared library `pip` using `pipx run`.
CHANGELOG.md Outdated
@@ -1,5 +1,7 @@
## dev

- Drop `setuptools` and `wheel` from the shared libraries
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It may be a good idea to describe briefly what this means to end users.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sure, done. Have you already considered adopting towncrier for pipx? This would also simplify categorizing the changes.

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CI is failing.

Copy link
Member

@webknjaz webknjaz left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Got a few small suggestions..

src/pipx/shared_libs.py Outdated Show resolved Hide resolved
src/pipx/commands/run.py Outdated Show resolved Hide resolved
src/pipx/commands/install.py Outdated Show resolved Hide resolved
chrysle and others added 3 commits December 1, 2023 06:58
@chrysle chrysle force-pushed the shared-libs-drop-setuptools-wheel branch from ddd41e3 to 913e823 Compare December 1, 2023 05:58
@chrysle
Copy link
Contributor Author

chrysle commented Dec 1, 2023

Thank you!

@gaborbernat
Copy link
Contributor

We need to fix the CI first 😎

@dukecat0
Copy link
Member

dukecat0 commented Dec 1, 2023

We need to fix the CI first 😎

It should be fixed in #1117.

@dukecat0
Copy link
Member

dukecat0 commented Dec 1, 2023

@chrysle Please fix linting.

@chrysle chrysle force-pushed the shared-libs-drop-setuptools-wheel branch from 1688741 to 995a1a7 Compare December 1, 2023 17:08
…e/pipx into shared-libs-drop-setuptools-wheel
@chrysle chrysle force-pushed the shared-libs-drop-setuptools-wheel branch from 995a1a7 to df0efad Compare December 1, 2023 17:09
@chrysle
Copy link
Contributor Author

chrysle commented Dec 1, 2023

Done!

Copy link
Contributor

@gaborbernat gaborbernat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@dukecat0 dukecat0 merged commit 0998a1a into pypa:main Dec 1, 2023
11 checks passed
@dukecat0
Copy link
Member

dukecat0 commented Dec 1, 2023

Thanks!

@chrysle chrysle deleted the shared-libs-drop-setuptools-wheel branch June 3, 2024 14:12
@jaraco
Copy link
Member

jaraco commented Sep 7, 2024

This change did not have the intended effect. Instead, it had the effect of leaving an old setuptools lingering in the shared libs, because that's what venv does:

root@1b9c9a77eeb4:/# python3.10 -m venv .venv
root@1b9c9a77eeb4:/# ls .venv/lib/python3.10/site-packages/
_distutils_hack  distutils-precedence.pth  pip  pip-22.0.2.dist-info  pkg_resources  setuptools  setuptools-59.6.0.dist-info

See #1539 for why that's worse than upgrading it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

drop setuptools and wheel from shared libs pipx run wheel / install wheel doesn't work
6 participants