From 6ea035b0e370e3606eacc2cd2caa609bb1d16fdd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20P=2E=20Berrang=C3=A9?= Date: Thu, 24 Mar 2022 12:04:14 +0000 Subject: [PATCH] setup: drop the 'rpm' command MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This duplicates funtionality already provided by the 'bdist_rpm' command. Signed-off-by: Daniel P. Berrangé --- setup.py | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/setup.py b/setup.py index 3191f95..669c590 100755 --- a/setup.py +++ b/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 = [