File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -193,9 +193,9 @@ def run(self):
193193 required_failed .append (package )
194194 else :
195195 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 ):
199199 default_backend = package .name
200200 print_raw ('' )
201201
Original file line number Diff line number Diff line change 11from __future__ import print_function , absolute_import
22
3+ from importlib import import_module
4+
35from distutils import sysconfig
46from distutils import version
57from distutils .core import Extension
@@ -1655,7 +1657,7 @@ def runtime_check(self):
16551657 """
16561658 pkg_name = 'tkinter' if PY3min else 'Tkinter'
16571659 try :
1658- __import__ (pkg_name )
1660+ import_module (pkg_name )
16591661 except ImportError :
16601662 return False
16611663 return True
You can’t perform that action at this time.
0 commit comments