mirror of
https://github.com/spl0k/supysonic.git
synced 2024-12-22 00:46:18 +00:00
Replace distutils.dir_util.remove_tree() by shutil.rmtree().
In Python 3.10 and 3.11, distutils has been formally marked as deprecated. Code that imports distutils will no longer work from Python 3.12. I'm pretty sure distutils.dir_util.remove_tree() and shutil.rmtree() do the same exact same thing and this should fix the issue :)
This commit is contained in:
parent
abe0b79968
commit
4bc80bfce5
4
setup.py
4
setup.py
@ -7,7 +7,7 @@
|
|||||||
|
|
||||||
import os.path
|
import os.path
|
||||||
|
|
||||||
from distutils import dir_util
|
from shutil import rmtree
|
||||||
from setuptools import setup
|
from setuptools import setup
|
||||||
from setuptools.command.sdist import sdist as _sdist
|
from setuptools.command.sdist import sdist as _sdist
|
||||||
|
|
||||||
@ -19,7 +19,7 @@ class sdist(_sdist):
|
|||||||
man_dir = os.path.join(base_dir, "man")
|
man_dir = os.path.join(base_dir, "man")
|
||||||
doctrees_dir = os.path.join(man_dir, ".doctrees")
|
doctrees_dir = os.path.join(man_dir, ".doctrees")
|
||||||
self.spawn(["sphinx-build", "-q", "-b", "man", "docs", man_dir])
|
self.spawn(["sphinx-build", "-q", "-b", "man", "docs", man_dir])
|
||||||
dir_util.remove_tree(doctrees_dir)
|
rmtree(doctrees_dir)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
|
Loading…
Reference in New Issue
Block a user