clean setuptool imports to remove distutils import shim

This commit is contained in:
Asif Saif Uddin 2023-05-16 20:17:43 +06:00 committed by GitHub
parent 2ebb698932
commit 098555ed40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -6,11 +6,7 @@ import re
import sys import sys
import setuptools import setuptools
from setuptools import setup
try:
from setuptools import setup
except ImportError:
from distutils.core import setup
# -- Parse meta # -- Parse meta
re_meta = re.compile(r'__(\w+?)__\s*=\s*(.*)') re_meta = re.compile(r'__(\w+?)__\s*=\s*(.*)')