chirun-ncl / chirun

A Python package providing the command line interface for building flexible and accessible content with Chirun.
https://chirun.org.uk/
Other
29 stars 4 forks source link

distutils is deprecated and slated for removal in Python 3.12 #133

Closed prowlett closed 2 years ago

prowlett commented 2 years ago

I upgraded my computer to Ubuntu 22.04 with Python 3.10.4 and upgraded chirun. I now get a DeprecationWarning when I run chirun, so I'm flagging it as a future issue:

/home/.../chirun_env/bin/chirun:13: DeprecationWarning: The distutils package is deprecated and slated for removal in Python 3.12. Use setuptools or check PEP 632 for potential alternatives
  from distutils.dir_util import copy_tree
christianp commented 2 years ago

Thanks for reporting this. I think it can just be replaced with shutil.copytree.