File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 22
22
print ("Value {} for USE_DISTUTILS treated as False" .
23
23
format (use_distutils ))
24
24
25
- from distutils .command .build import build as _build
26
-
27
25
if use_setuptools :
28
26
try :
29
27
from setuptools import setup
30
28
from setuptools .command .install import install as _install
31
29
from setuptools .command .build_ext import build_ext as _build_ext
32
30
except ImportError :
33
31
use_setuptools = False
32
+ else :
33
+ try :
34
+ from setuptools .command .build import build as _build
35
+ except ImportError :
36
+ from distutils .command .build import build as _build
34
37
35
38
if not use_setuptools :
36
39
from distutils .core import setup
37
40
from distutils .command .install import install as _install
38
41
from distutils .command .build_ext import build_ext as _build_ext
42
+ from distutils .command .build import build as _build
39
43
40
44
cmake_opts = [("PYTHON_BIN" , sys .executable ),
41
45
("CMAKE_INSTALL_RPATH_USE_LINK_PATH" , "yes" )]
You can’t perform that action at this time.
0 commit comments