We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f6cb64 commit f82fe73Copy full SHA for f82fe73
setup.py
@@ -27,9 +27,17 @@
27
# like "setuptools; python_version < '3.8'" is not used here because
28
# it breaks installation via "python setup.py install". See also the
29
# discussion at: https://github.com/Supervisor/supervisor/issues/1692
30
-requires = []
31
if py_version < (3, 8):
32
- requires.append("setuptools")
+ try:
+ import pkg_resources
33
+ import setuptools
34
+ except ImportError:
35
+ raise RuntimeError(
36
+ "On Python < 3.8, Supervisor requires setuptools as a runtime"
37
+ " dependency because pkg_resources is used to load plugins"
38
+ )
39
+
40
+requires = []
41
42
tests_require = []
43
testing_extras = tests_require + [
0 commit comments