mirror of
https://gitlab.com/libvirt/libvirt-python.git
synced 2025-07-21 16:59:25 +03:00
setup: drop the 'rpm' command
This duplicates funtionality already provided by the 'bdist_rpm' command. Signed-off-by: Daniel P. Berrangé <berrange@redhat.com>
This commit is contained in:
21
setup.py
21
setup.py
@ -233,26 +233,6 @@ class my_sdist(sdist):
|
||||
else:
|
||||
sdist.run(self)
|
||||
|
||||
class my_rpm(Command):
|
||||
user_options = []
|
||||
|
||||
description = "Build src and noarch rpms."
|
||||
|
||||
def initialize_options(self):
|
||||
pass
|
||||
|
||||
def finalize_options(self):
|
||||
pass
|
||||
|
||||
def run(self):
|
||||
"""
|
||||
Run sdist, then 'rpmbuild' the tar.gz
|
||||
"""
|
||||
|
||||
self.run_command('sdist')
|
||||
self.spawn(["/usr/bin/rpmbuild", "-ta", "--clean",
|
||||
"dist/libvirt-python-%s.tar.gz" % self.distribution.get_version()])
|
||||
|
||||
class my_test(Command):
|
||||
user_options = [
|
||||
('build-base=', 'b',
|
||||
@ -355,7 +335,6 @@ of recent versions of Linux (and other OSes).''',
|
||||
'build': my_build,
|
||||
'clean': my_clean,
|
||||
'sdist': my_sdist,
|
||||
'rpm': my_rpm,
|
||||
'test': my_test
|
||||
},
|
||||
classifiers = [
|
||||
|
Reference in New Issue
Block a user