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

distribute_setup.py: migrate away from distutils. #146

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

emollier
Copy link

@emollier emollier commented Nov 5, 2024

Following PEP 632, the distutils module is deprecated. In gff, this module is still in use for it's logging facility, so a contemporary approach would be to use the "logging" module instead of distutils. logging.warning behaves the same way as distutils.log.warn; there was also a logging.warn function but it is deprecated in favor of warning, thus this patch does not attempt to do something smart with things allowed by the import semantics.

Following [PEP 632], the distutils module is deprecated.  In gff, this
module is still in use for it's logging facility, so a contemporary
approach would be to use the "logging" module instead of distutils.
logging.warning behaves the same way as distutils.log.warn; there was
also a logging.warn function but it is deprecated in favor of warning,
thus this patch does not attempt to do something smart with things
allowed by the import semantics.

[PEP 632]: https://peps.python.org/pep-0632/

Signed-off-by: Étienne Mollier <[email protected]>
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.

1 participant