Remove using of distutils (#1964)

* Remove using of distutils

* Upgrade setuptools to fix CI

* Use Python 3.7 in build_wheel.sh
This commit is contained in:
Bet4
2024-06-12 14:45:23 +08:00
committed by GitHub
parent c39e80231c
commit abefcb2f89
3 changed files with 10 additions and 12 deletions

View File

@@ -3,6 +3,7 @@
from __future__ import print_function
import glob
import logging
import os
import subprocess
import shutil
@@ -10,13 +11,14 @@ import sys
import platform
import setuptools
from distutils import log
from distutils.core import setup
from distutils.util import get_platform
from distutils.command.build import build
from distutils.command.sdist import sdist
from setuptools import setup
from sysconfig import get_platform
from setuptools.command.build import build
from setuptools.command.sdist import sdist
from setuptools.command.bdist_egg import bdist_egg
log = logging.getLogger(__name__)
SYSTEM = sys.platform
# sys.maxint is 2**31 - 1 on both 32 and 64 bit mingw