import setuptools first
authorLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 25 Sep 2022 18:03:42 +0000 (19:03 +0100)
committerLaszlo Boszormenyi (GCS) <gcs@debian.org>
Sun, 25 Sep 2022 18:03:42 +0000 (19:03 +0100)
Forwarded: not-needed
Last-Update: 2022-09-25

Module setuptools needs to be imported before distutils.

Gbp-Pq: Name setuptools.patch

setup.py

index 8fac99cf161c6dc5561079ff2ed8cdfaa831df54..c0129fc4a516b737dc8806a0268b402ae3506d00 100644 (file)
--- a/setup.py
+++ b/setup.py
@@ -12,6 +12,7 @@
 # See the License for the specific language governing permissions and
 # limitations under the License.
 """A setup module for the GRPC Python package."""
+import setuptools
 from distutils import cygwinccompiler
 from distutils import extension as _extension
 from distutils import util
@@ -25,7 +26,6 @@ import shutil
 import sys
 import sysconfig
 
-import setuptools
 from setuptools.command import egg_info
 
 import subprocess