Support python 3.10
distutils is deprecated and its use triggers DeprecationWarning which make some Ubuntu autopkgtests fail: fix this by replacing distutils by equivalent functions.
distutils.version is simply replaced with packaging.version.
distutils.copy_tree is a bit more complicated as preserve_mode/times does not exist directly in shutil.copytree function.
Signed-off-by: Alexandre Ghiti [email protected]
@olga24912 Will you please check the fix?
Hi @AlexGhiti !
Thank you for your PR and for your help in making SPAdes better!
The current patch might require some changes as SPAdes support multiple versions of Python(2.7, 3.6 - 3.10). I have already done some fixes in our developer repo, but I don't like how they look. Maybe you have some better solutions for the issues which I pointed out in the comments in this PR.
We will fix the issue with python 3.10 in the next release :)
Best regards, Olga
Obsolete