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:
17
setup.py
17
setup.py
@ -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
|
||||
},
|
||||
|
Reference in New Issue
Block a user