GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — bpo-29523: Update setuptools to 34.2.0 and bundle its dependencies. by stratakis · Pull Request #67 · python/cpython

Conversation

@stratakis

@stratakis stratakis commented Feb 13, 2017

Copy link
Copy Markdown
Contributor

setuptools as of version 34.0.0, unbundled its dependencies and it started
depending on them, so in order to update the, bundled with python, setuptools
we also need to bundle its dependencies: pyparsing, packaging, appdirs and six.

See also: https://setuptools.readthedocs.io/en/latest/history.html#v34-0-0

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

auvipy and jaraco reacted with thumbs up emoji
All reactions
  • 👍 2 reactions
@stratakis
bpo-29523: Update setuptools to 34.2.0 and bundle its dependencies.
2933a5e
setuptools as of version 34.0.0, unbundled its dependencies and it started
depending on them, so in order to update the, bundled with python, setuptools
we also need to bundle its dependencies: pyparsing, packaging, appdirs and six.

See also: https://setuptools.readthedocs.io/en/latest/history.html#v34-0-0
@the-knights-who-say-ni the-knights-who-say-ni added the CLA not signed label Feb 13, 2017
@the-knights-who-say-ni

the-knights-who-say-ni commented Feb 13, 2017

Copy link
Copy Markdown

Hello, and thanks for your contribution!

I'm a bot set up to make sure that the project can legally accept your contribution by verifying you have signed the PSF contributor agreement (CLA).

Unfortunately we couldn't find an account corresponding to your GitHub username on bugs.python.org (b.p.o) to verify you have signed the CLA. This is necessary for legal reasons before we can look at your contribution. Please follow these steps to help rectify the issue:

  1. If you don't have an account on b.p.o, please create one
  2. Make sure your GitHub username is listed in "Your Details" at b.p.o
  3. If you have not already done so, please sign the PSF contributor agreement
  4. If you just signed the CLA, please wait at least a day and then check "Your Details" on bugs.python.org to see if your account has been marked as having signed the CLA (the delay is due to a person having to manually check your signed CLA)
  5. Reply here saying you have completed the above steps

Thanks again to your contribution and we look forward to looking at it!

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stratakis

stratakis commented Feb 13, 2017

Copy link
Copy Markdown
Contributor Author

Relevant issue: https://bugs.python.org/issue29523

Added also my github username to bpo, hopefully the bot will update the CLA label.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stratakis

stratakis commented Feb 13, 2017

Copy link
Copy Markdown
Contributor Author

Also I think this change should be made as well for the 3.6 branch (maybe 3.5 as well?).

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

dstufft
dstufft requested changes Feb 13, 2017
View reviewed changes

@dstufft dstufft left a comment

Copy link
Copy Markdown
Member

There was a problem hiding this comment.

Choose a reason for hiding this comment

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

I'm generally against this change, and would prefer to instead wait for pip to implement PEP 518 which will allow us to remove setuptools from being bundled at all (See pypa/pip#4144).

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
@codecov

codecov Bot commented Feb 13, 2017

Copy link
Copy Markdown

Codecov Report

Merging #67 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master      #67      +/-   ##
==========================================
+ Coverage   82.37%   82.37%   +<.01%     
==========================================
  Files        1427     1427              
  Lines      350948   350952       +4     
==========================================
+ Hits       289091   289095       +4     
  Misses      61857    61857

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 649a7ca...2933a5e. Read the comment docs.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@pfmoore

pfmoore commented Feb 13, 2017

Copy link
Copy Markdown
Member

I'm also reluctant to do this. It seems too likely that people will start to assume that the unbundled dependencies (six, appdirs, ...) are shipped with Python, and not specify their own dependencies correctly.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stratakis

stratakis commented Feb 13, 2017

Copy link
Copy Markdown
Contributor Author

@dstufft Your point is quite reasonable from the upstream point of view.

As a downstream packager where setuptools is being unbundled and the system one is being used (thus updating it now means breakage due to missing wheels as is now), I'll have to follow this approach until PEP 518 is implemented.

Anyway feel free to close it if you disagree with the changes, I'll have to carry the patch downstream to fix the current Fedora issues but it can be removed later on.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@berkerpeksag berkerpeksag removed the CLA not signed label Feb 13, 2017
@the-knights-who-say-ni the-knights-who-say-ni added the CLA signed label Feb 13, 2017
@jaraco

jaraco commented Feb 14, 2017

Copy link
Copy Markdown
Member

I don't see any reason not to accept this contrib. It helps align with the current known state of affairs. When PEP 518 lands, this code can be readily replaced with the PEP 518 solution and until then, ensurepip isn't blocked from working with the latest setuptools versions. I don't think anyone here sees this change as a precedent or reason not to adopt PEP 518.

people will start to assume that the unbundled dependencies (six, appdirs, ...) are shipped with Python

I really doubt it. First off, you have to ensurepip, so it doesn't come with Python by default. But more importantly, most users currently upgrade pip and setuptools to install packages, so will end up with these packages installed anyway in virtualenvs and system envs. So if the presence of these packages is going to lead to incomplete dependency declarations, that risk is already present. Even so, these issues will shake out in short order when setuptools and pkg_resources aren't a standard dependency.

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@zooba

zooba commented May 24, 2017

Copy link
Copy Markdown
Member

I'm against this PR too. In chatting with people at PyCon, many were shocked that setuptools is not guaranteed to be installed by default (mostly on Windows/Mac) and might be removed in the future, and if we add more packages then it will cause further angst when/if we remove those.

Though since PEP 518 has been merged, presumably the next release of pip will be good to embed without setuptools?

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stratakis

stratakis commented Jun 1, 2017

Copy link
Copy Markdown
Contributor Author

Setuptools is bundling its dependencies again [0] as of version 36.0.0. Closing this PR.

[0] pypa/setuptools#980 (comment)

All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@stratakis stratakis closed this Jun 1, 2017
@stratakis
stratakis deleted the update_setuptools branch June 1, 2017 14:07
jaraco pushed a commit that referenced this pull request Dec 2, 2022
@pyup-bot @Mariatta
Update aiohttp from 3.0.3 to 3.0.4 (#67)
36c6639
jaraco added a commit to jaraco/cpython that referenced this pull request Feb 17, 2023
@jaraco @webknjaz
GHA pretty env (python#67)
e95c54f
* 🎨 Make the GHA log is clean and colorized

This patch sets up root-level environment variables shared by all the
workflow jobs. They include:

* Disabling undesired `pip`'s warnings/suggestions
* Requesting the executed apps color their output unconditionally
* Letting `tox` pass those requests to underlying/wrapped programs

* Reformat without end of line comments. Group into sections.

* Avoid numerics for booleans where possible. Choose arbitrary numeric where any numeric is accepted.

Co-authored-by: Sviatoslav Sydorenko <[email protected]>
@gvanrossum gvanrossum mentioned this pull request Aug 22, 2023
heap-use-after-free in _PyFunction_LookupByVersion #108253
Closed
@ngoldbaum ngoldbaum mentioned this pull request Sep 23, 2024
Crash running PyO3 tests with --test-threads=1000 #124375
Closed
This was referenced Feb 11, 2025
segmentfault when pip installing setuptools #129992
Closed
segmentfault when pip installing setuptools #129993
Closed
AA-Turner added a commit to AA-Turner/cpython that referenced this pull request Apr 17, 2025
@AA-Turner
Add type check macros (python#67)
f09d99f
@sergey-miryanov sergey-miryanov mentioned this pull request Dec 18, 2025
Observed memory leak in ssl library: Python 3.14 GC issue #142516
Closed
@ngoldbaum ngoldbaum mentioned this pull request Mar 6, 2026
Remove deprecated and undocumented function ctypes.SetPointerType #133866
Closed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

@dstufft dstufft dstufft requested changes

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

7 participants

@stratakis @the-knights-who-say-ni @pfmoore @jaraco @zooba @dstufft @berkerpeksag
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.