Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Import setup from setuptools#12

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
stefanor wants to merge1 commit intopylint-dev:master
base:master
Choose a base branch
Loading
fromstefanor:setuptools-60

Conversation

stefanor
Copy link

setuptools 60 uses its own bundled version of distutils, by default. It injects this into sys.modules, at import time. So we need to make sure that it is imported, before anything else imports distutils, to ensure everything is using the same distutils version.

This change in setuptools is to prepare for Python 3.12, which will drop distutils.

In this case, the best way to deal with the problem is to just use setuptools' setup().

Fixes:https://bugs.debian.org/1022481

setuptools 60 uses its own bundled version of distutils, by default. Itinjects this into sys.modules, at import time. So we need to make surethat it is imported, before anything else imports distutils, to ensureeverything is using the same distutils version.This change in setuptools is to prepare for Python 3.12, which will dropdistutils.In this case, the best way to deal with the problem is to just usesetuptools' setup().Fixes:https://bugs.debian.org/1022481
@stefanor
Copy link
Author

FWIW, the underlying bug I was describing ishttps://bugs.debian.org/1025216 but this change is still a worthwhile cleanup, I think.

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

1 participant
@stefanor

[8]ページ先頭

©2009-2025 Movatter.jp