From 60035a9ef6bcd856df8b57f980db79d18e3c44fc Mon Sep 17 00:00:00 2001 From: Felix Yan Date: Wed, 11 Aug 2021 00:34:39 +0800 Subject: Prefer setuptools.setup Let's always prefer setuptools.setup as it generates better metadata, and fixes the following warning: ``` /usr/lib/python3.9/distutils/dist.py:274: UserWarning: Unknown distribution option: 'python_requires' warnings.warn(msg) ``` --- setup.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'setup.py') diff --git a/setup.py b/setup.py index e1abd89..41fa8b5 100644 --- a/setup.py +++ b/setup.py @@ -11,9 +11,7 @@ VERSION = "7.44.0" import glob, os, re, sys, subprocess import distutils try: - import wheel - if wheel: - from setuptools import setup + from setuptools import setup except ImportError: from distutils.core import setup from distutils.extension import Extension -- cgit v1.2.1