-
Notifications
You must be signed in to change notification settings - Fork 582
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
Fix for python 3.12: replace removed distutils
#2113
Conversation
… tree with time and mode unpreserved
distutil
with shutil
to copy dir with time and mode unpreserveddistutil
distutil
distutils
@multiqc-bot changelog |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice 👍🏻
@multiqc-bot fix linting |
(Please merge #2115 first) |
@multiqc-bot changelog |
Sigh, Should probably add an if-else to import distutils for 3.6 and 3.7 instead of calling shutils. |
If we do, maybe we add a note to #2039 It would be really nice to know what Python versions people are using! No idea how many people are still on 3.7.. |
Good point. I thought we are dropping only 3.6; but if we drop 3.7 as well, it should be nice. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great!
distutils
was fully removed in Python 3.12: https://peps.python.org/pep-0632/#migration-advicedistutils.version.StrictVersion
withpackaging.version
distutils.util.strtobool
with re-implementationdistutils.dir_util.copy_tree
withshutil.copytree
calls