-
Notifications
You must be signed in to change notification settings - Fork 203
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
don't use distutils.dir_util in copy_dir #3310
Conversation
May I suggest not to switch implementations based on Python version? Why not use a single implementation which behaves as the Python 3.8 version always? Or a defined subset of it. I see no advantage of the usage of Python 3.8 function if a hand-rolled version must still exist. Just makes the test-surface larger |
Tests with this PR can be found in easybuilders/easybuild-easyblocks#2049 |
The idea is that we can get rid of our own code whenever we reach only having to support Python 3.8 & newer... I sort of see your point though. Thoughts on this @lexming? |
@boegel If our own implementation for Python < 3.8 works just as well in Python 3.8 and onwards, we could indeed use it indiscriminately. |
New tests in easybuilders/easybuild-easyblocks#2049 (comment) |
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.
LGTM
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.
LGTM
All tests were fine, covering all current use cases (overwrite and merging) and directories with regular files and symlinks.
Going in, thanks @boegel ! |
fixes #3306