Skip to content

Commit a73760c

Browse files
committed
bugzilla-cli: Make it actually use cwd bugzilla module
1 parent 70eb5a9 commit a73760c

2 files changed

Lines changed: 16 additions & 4 deletions

File tree

bugzilla-cli

Lines changed: 0 additions & 1 deletion
This file was deleted.

bugzilla-cli

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#!/bin/sh
2+
3+
PYTHONPATH=. exec bin/bugzilla "$@"

setup.py

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ def initialize_options(self):
118118
def finalize_options(self):
119119
pass
120120

121-
def run(self):
121+
def _run(self):
122122
os.system("pylint "
123123
"--reports=n "
124124
"--output-format=colorized "
@@ -151,15 +151,25 @@ def run(self):
151151
# W0212: Access to a protected member of a client class
152152
"--disable W0212 "
153153

154-
"bugzilla/ bugzilla-cli tests/*.py ")
154+
"bugzilla/ bin-bugzilla tests/*.py ")
155155

156156
os.system("pep8 --format=pylint "
157-
"bugzilla/ bugzilla-cli tests/ "
157+
"bugzilla/ bin-bugzilla tests/ "
158158
# E303: Too many blank lines
159159
# E125: Continuation indent isn't different from next block
160160
# E128: Not indented for visual style
161161
"--ignore E303,E125,E128")
162162

163+
def run(self):
164+
os.link("bin/bugzilla", "bin-bugzilla")
165+
try:
166+
self._run()
167+
finally:
168+
try:
169+
os.unlink("bin-bugzilla")
170+
except:
171+
pass
172+
163173

164174
class RPMCommand(Command):
165175
description = "Build src and binary rpms."

0 commit comments

Comments
 (0)