1
0
mirror of https://gitlab.com/libvirt/libvirt-python.git synced 2025-08-01 00:21:59 +03:00

setup: Drop the clean command

Direct setup.py invocations are discouraged anyway, use git clean
or 'make clean' instead.

Signed-off-by: Erik Skultety <eskultet@redhat.com>
This commit is contained in:
Erik Skultety
2023-06-08 09:35:17 +02:00
parent b8656c12b0
commit aeb62b087b

View File

@ -331,22 +331,6 @@ class my_test(Command):
subprocess.check_call([pytest, "tests"])
class my_clean(Command):
user_options = [
("all", None, "unused, compatibility with distutils")
]
def initialize_options(self):
self.all = False
def finalize_options(self):
pass
def run(self):
if Path("build").exists():
shutil.rmtree("build", ignore_errors=True)
##################
# Invoke setup() #
##################
@ -375,7 +359,6 @@ setup(
cmdclass={
"build_ext": my_build_ext,
"build_py": my_build_py,
"clean": my_clean,
"sdist": my_sdist,
"test": my_test
},