We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5503d74 commit 60b73ecCopy full SHA for 60b73ec
setup.py
@@ -1,7 +1,6 @@
1
#!/usr/bin/env python
2
3
import re
4
-from distutils.command.build import build
5
from glob import glob
6
from itertools import chain
7
from os.path import basename
@@ -12,6 +11,11 @@
12
11
from setuptools import Command
13
from setuptools import find_packages
14
from setuptools import setup
+try:
15
+ # https://setuptools.pypa.io/en/latest/deprecated/distutils-legacy.html
16
+ from setuptools.command.build import build
17
+except ImportError:
18
+ from distutils.command.build import build
19
from setuptools.command.develop import develop
20
from setuptools.command.easy_install import easy_install
21
from setuptools.command.install_lib import install_lib
0 commit comments