Update python-modules.py

This commit is contained in:
aparnajyothi-y
2024-07-03 11:15:51 +05:30
committed by GitHub
parent 002e3ccf57
commit 68a23eab06

View File

@@ -309,14 +309,7 @@ def check_missing_modules(expected_modules):
importlib.import_module(module)
except:
missing.append(module)
return missing
import platform
# Exclude tkinter, curses, and curses_panel for Python 3.8 and above on macOS 13
if sys.version_info >= (3, 8) and platform.system() == 'Darwin' and platform.release() == '13.6.7':
excluded_modules.extend(['_tkinter', '_curses', '_curses_panel'])
return missing
if missing_modules:
print('The following modules are missing:')
for module in missing_modules: