From c19d1c609f31d84cc07181a5b516f397dd023694 Mon Sep 17 00:00:00 2001 From: Jeff Widman Date: Tue, 12 Feb 2019 11:41:09 -0800 Subject: [PATCH] Fix `pex` warning I was using `pex` on an application that lists `google-auth` as a dependency and got the following warning: ..../pex/environment.py:330 UserWarning: The `pkg_resources` package was loaded from a pex vendored version when declaring namespace packages defined by google-auth 1.6.2. The google-auth 1.6.2 distribution should fix its `install_requires` to include `setuptools` So adding `setuptools` as a listed dependency to fix this. Version `40.3.0` was chosen because it fixed a bug in the handling of `pkg_resource`-style namespaces (https://github.com/pypa/setuptools/issues/1321). For more details on why this version was picked, see the discussion in https://github.com/googleapis/google-auth-library-python/pull/322. Also making the listing alphabetical. --- setup.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index b2eb5984d..73d0f71ce 100644 --- a/setup.py +++ b/setup.py @@ -19,10 +19,11 @@ DEPENDENCIES = ( + 'cachetools>=2.0.0', 'pyasn1-modules>=0.2.1', 'rsa>=3.1.4', + 'setuptools>=40.3.0', 'six>=1.9.0', - 'cachetools>=2.0.0', )