Skip to content

Replace distutils.dir_util.copy_tree with shutil.copytree#47

Merged
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-disutils-deprecation
Mar 25, 2024
Merged

Replace distutils.dir_util.copy_tree with shutil.copytree#47
DanielaOrtner merged 1 commit into
RebelToolbox:mainfrom
madmiraal:fix-disutils-deprecation

Conversation

@madmiraal
Copy link
Copy Markdown
Contributor

Python has, for a long time, recommended using setuptools instead of distutils [1]. In Python 3.10, distutils was deprecated [2]. In Python 3.12, it was removed [3]. However, the Mono module is still using distutils.

This PR uses setuptools' shutil instead of distutils. Specifically, it replaces distutils.dir_util.copy_tree with shutil.copytree.

[1] https://docs.python.org/3.9/library/distutils.html
[2] https://peps.python.org/pep-0632/
[3] https://docs.python.org/3/whatsnew/3.12.html

@madmiraal madmiraal added the bug label Mar 24, 2024
@DanielaOrtner DanielaOrtner self-requested a review March 25, 2024 09:32
Copy link
Copy Markdown
Contributor

@DanielaOrtner DanielaOrtner left a comment

Choose a reason for hiding this comment

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

Great work to bring us up to date :)

@DanielaOrtner DanielaOrtner merged commit fe065a7 into RebelToolbox:main Mar 25, 2024
@madmiraal madmiraal deleted the fix-disutils-deprecation branch March 25, 2024 09:41
@madmiraal madmiraal added PR Type: Bug Fix Your current game should now work as expected. and removed bug labels May 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

PR Type: Bug Fix Your current game should now work as expected.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants