Skip to content

Commit 17c7ca3

Browse files
committed
Fix installation via "setup.py install"
1 parent 7b41908 commit 17c7ca3

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

setup.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,13 @@
2222
elif (3, 0) < py_version < (3, 4):
2323
raise RuntimeError('On Python 3, Supervisor requires Python 3.4 or later')
2424

25-
# setuptools is required as a runtime dependency only on
26-
# Python < 3.8. See the comments in supervisor/compat.py.
27-
requires = [
28-
"setuptools; python_version < '3.8'",
29-
]
25+
# setuptools is required as a runtime dependency only on Python < 3.8.
26+
# See the comments in supervisor/compat.py. An environment marker
27+
# like "setuptools; python_version < '3.8'" is not used here because
28+
# it breaks installation via "python setup.py install".
29+
requires = []
30+
if py_version < (3, 8):
31+
requires.append("setuptools")
3032

3133
tests_require = []
3234
testing_extras = tests_require + [

0 commit comments

Comments
 (0)