Skip to content

Commit d2803aa

Browse files
committed
setup: Drop distutils direct usage
Signed-off-by: Cole Robinson <crobinso@redhat.com>
1 parent 4bb6f15 commit d2803aa

1 file changed

Lines changed: 5 additions & 6 deletions

File tree

setup.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,7 @@
66
import subprocess
77
import sys
88

9-
from distutils.core import Command
10-
from setuptools import setup
9+
import setuptools
1110

1211

1312
def get_version():
@@ -17,7 +16,7 @@ def get_version():
1716
return eval(line.split('=')[-1]) # pylint: disable=eval-used
1817

1918

20-
class PylintCommand(Command):
19+
class PylintCommand(setuptools.Command):
2120
user_options = []
2221

2322
def initialize_options(self):
@@ -52,7 +51,7 @@ def run(self):
5251
pylint.lint.Run(files + pylint_opts)
5352

5453

55-
class RPMCommand(Command):
54+
class RPMCommand(setuptools.Command):
5655
description = ("Build src and binary rpms and output them "
5756
"in the source directory")
5857
user_options = []
@@ -75,7 +74,7 @@ def run(self):
7574
subprocess.check_call(cmd)
7675

7776

78-
class ManCommand(Command):
77+
class ManCommand(setuptools.Command):
7978
description = ("Regenerate manpages from rst")
8079
user_options = []
8180

@@ -117,7 +116,7 @@ def _parse_requirements(fname):
117116
return ret
118117

119118

120-
setup(
119+
setuptools.setup(
121120
name='python-bugzilla',
122121
version=get_version(),
123122
description='Library and command line tool for interacting with Bugzilla',

0 commit comments

Comments
 (0)