From ba9a4462c6ccfb090d975fe7ca76d526d09c0776 Mon Sep 17 00:00:00 2001 From: John Sirois Date: Fri, 7 Dec 2018 01:43:27 -0800 Subject: [PATCH] Declare our setuptools dependency (#1931) We rely on setuptools' pkg_resources in a few places so we declare our dependency so that packaging and installation tools work. Fixes #1716 --- setup.py | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/setup.py b/setup.py index f7e5d526..19e85c94 100644 --- a/setup.py +++ b/setup.py @@ -65,6 +65,14 @@ class PyTestCommand(TestCommand): sys.exit(errno) +install_requires = [ + # We depend on functioning pkg_resources.working_set.add_entry() and + # pkg_resources.load_entry_point(). These both work as of 3.0 which + # is the first version to support Python 3.4 which we require as a + # floor. + 'setuptools>=3.0', +] + extra_require = { 'gevent': ['gevent>=0.13'], 'eventlet': ['eventlet>=0.9.7'], @@ -84,6 +92,7 @@ setup( url='http://gunicorn.org', python_requires='>=3.4', + install_requires=install_requires, classifiers=CLASSIFIERS, zip_safe=False, packages=find_packages(exclude=['examples', 'tests']),