mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-22 20:59:34 +03:00
setup: stop inheriting from 'clean' command
The default 'clean' command impl deletes only intermediate files from the 'build' directory. We've overridden it to delete everything. There is no benefit in inheriting from the default impl, given our subclass will delete everything. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
5
setup.py
5
setup.py
@ -2,7 +2,6 @@
|
||||
|
||||
from distutils.core import setup, Extension, Command
|
||||
from distutils.command.build import build
|
||||
from distutils.command.clean import clean
|
||||
from distutils.command.sdist import sdist
|
||||
from distutils.dir_util import remove_tree
|
||||
from distutils.util import get_platform
|
||||
@ -300,10 +299,8 @@ class my_test(Command):
|
||||
self.spawn([sys.executable, pytest])
|
||||
|
||||
|
||||
class my_clean(clean):
|
||||
class my_clean(Command):
|
||||
def run(self):
|
||||
clean.run(self)
|
||||
|
||||
if os.path.exists("build"):
|
||||
remove_tree("build")
|
||||
|
||||
|
Reference in New Issue
Block a user