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

lib: py: remove distutils in favor of setuptools#3007

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
pyrox0 wants to merge1 commit intoapache:master
base:master
Choose a base branch
Loading
frompyrox0:master

Conversation

pyrox0
Copy link

As distutils is removed in python 3.12, and setuptools provides the same interface, it can be switched in place with only minor changes. This allows using the thrift bindings on versions of Python 3.12 or greater, and in python environments without distutils installed(such as NixOS, which does not expose setuptools' internal distutils distribution)

  • Did you create anApache Jira ticket? (Request account here, not required for trivial changes)
  • If a ticket exists: Does your pull request title follow the pattern "THRIFT-NNNN: describe my issue"?
  • Did you squash your changes to a single commit? (not required, but preferred)
  • [ x Did you do your best to avoid breaking changes? If one was needed, did you label the Jira ticket with "Breaking-Change"?
  • If your change does not involve any code, include[skip ci] anywhere in the commit message to free up build resources.

As distutils is removed in python 3.12, and setuptools provides the sameinterface, it can be switched in place with minor changes. This allowsusing the thrift bindings on versions of Python 3.12 or greater.
Copy link
Member

@ctubbsiictubbsii left a comment

Choose a reason for hiding this comment

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

This is a small incremental improvement. However, it should also be done with other modernizations, like those described inhttps://packaging.python.org/en/latest/guides/modernize-setup-py-project/

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@ctubbsiictubbsiictubbsii left review comments

Assignees

No one assigned

Labels

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@pyrox0@ctubbsii@Jens-G

[8]ページ先頭

©2009-2025 Movatter.jp