Skip to content

Comments

distribute_setup.py: migrate away from distutils.#146

Open
emollier wants to merge 1 commit intochapmanb:masterfrom
emollier:logging
Open

distribute_setup.py: migrate away from distutils.#146
emollier wants to merge 1 commit intochapmanb:masterfrom
emollier:logging

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 <emollier@debian.org>
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