import commands from setuptools

importing build_py from distutils breaks in setuptools 58
This commit is contained in:
Min RK
2021-11-04 13:55:41 +01:00
parent 0d89241c9f
commit e2631b302a

View File

@@ -12,8 +12,11 @@ import shutil
import sys import sys
from subprocess import check_call from subprocess import check_call
from setuptools import Command
from setuptools import setup from setuptools import setup
from setuptools.command.bdist_egg import bdist_egg from setuptools.command.bdist_egg import bdist_egg
from setuptools.command.build_py import build_py
from setuptools.command.sdist import sdist
v = sys.version_info v = sys.version_info
@@ -132,14 +135,9 @@ setup_args = dict(
) )
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# custom distutils commands # custom setuptools commands
# --------------------------------------------------------------------------- # ---------------------------------------------------------------------------
# imports here, so they are after setuptools import if there was one
from distutils.cmd import Command
from distutils.command.build_py import build_py
from distutils.command.sdist import sdist
def mtime(path): def mtime(path):
"""shorthand for mtime""" """shorthand for mtime"""