File tree 2 files changed +6
-4
lines changed
2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ def run(self):
193
193
required_failed .append (package )
194
194
else :
195
195
good_packages .append (package )
196
- if (isinstance (package , setupext .OptionalBackendPackage )
197
- and package .runtime_check ()
198
- and default_backend is None ):
196
+ if (isinstance (package , setupext .OptionalBackendPackage ) and
197
+ package .runtime_check () and
198
+ default_backend is None ):
199
199
default_backend = package .name
200
200
print_raw ('' )
201
201
Original file line number Diff line number Diff line change 1
1
from __future__ import print_function , absolute_import
2
2
3
+ from importlib import import_module
4
+
3
5
from distutils import sysconfig
4
6
from distutils import version
5
7
from distutils .core import Extension
@@ -1655,7 +1657,7 @@ def runtime_check(self):
1655
1657
"""
1656
1658
pkg_name = 'tkinter' if PY3min else 'Tkinter'
1657
1659
try :
1658
- __import__ (pkg_name )
1660
+ import_module (pkg_name )
1659
1661
except ImportError :
1660
1662
return False
1661
1663
return True
You can’t perform that action at this time.
0 commit comments