From d0fbf25216bd337d20aceee7d91c72f0e0135d62 Mon Sep 17 00:00:00 2001 From: Lidi Zheng Date: Mon, 3 Aug 2020 10:58:18 -0700 Subject: [PATCH] Resolve the user warning generated by our setup.py --- setup.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 2fb0296506e..90df0a1042e 100644 --- a/setup.py +++ b/setup.py @@ -12,6 +12,11 @@ # See the License for the specific language governing permissions and # limitations under the License. """A setup module for the GRPC Python package.""" + +# setuptools need to be imported before distutils. Otherwise it might lead to +# undesirable behaviors or errors. +import setuptools + from distutils import cygwinccompiler from distutils import extension as _extension from distutils import util @@ -25,7 +30,6 @@ import shutil import sys import sysconfig -import setuptools from setuptools.command import egg_info import subprocess