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

setup.py: migrate away from distutils. #20

Merged
merged 1 commit into from Aug 24, 2023

Conversation

emollier
Copy link
Contributor

@emollier emollier commented Jun 25, 2023

Description

distutils is deprecated and going to be removed from Python 3.12. This change updates setup.py to make use of the setup function from setuptools instead, per PyPA recommendations.

Fixes (issue)

Type of change

  • Bug fix (non-breaking change which fixes an issue)

How Has This Been Tested?

I have run the Debian package building procedure, then the test suite against the packaged result, and it shown no regressions. Basically this can be replicated by installing the module and running the test suite against the installment.

Checklist:

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
    Change is one line, so adding comments around would probably be dead weight.
  • I have made corresponding changes to the documentation
    Documentation didn't refer to distutils initially, no changes required I think.
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
    There was no clear point, or way, for adding a test for this particular change.
  • New and existing unit tests pass locally with my changes

distutils is deprecated and going to be removed from Python 3.12.
This change updates setup.py to make use of the setup function from
setuptools instead, per [PyPA recommendations].

[PyPA recommendations]: https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html#prefer-setuptools
@babinyurii babinyurii merged commit 56cef38 into babinyurii:master Aug 24, 2023
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.

None yet

2 participants