Skip to content

Commit c389254

Browse files
authored
Merge pull request #389 from isuruf/distutils
Use build from distutils
2 parents 05fb3c1 + b6d2d5a commit c389254

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,20 +22,20 @@
2222
print("Value {} for USE_DISTUTILS treated as False".
2323
format(use_distutils))
2424

25+
from distutils.command.build import build as _build
26+
2527
if use_setuptools:
2628
try:
2729
from setuptools import setup
2830
from setuptools.command.install import install as _install
2931
from setuptools.command.build_ext import build_ext as _build_ext
30-
from setuptools.command.build import build as _build
3132
except ImportError:
3233
use_setuptools = False
3334

3435
if not use_setuptools:
3536
from distutils.core import setup
3637
from distutils.command.install import install as _install
3738
from distutils.command.build_ext import build_ext as _build_ext
38-
from distutils.command.build import build as _build
3939

4040
cmake_opts = [("PYTHON_BIN", sys.executable),
4141
("CMAKE_INSTALL_RPATH_USE_LINK_PATH", "yes")]

0 commit comments

Comments
 (0)