Exclude tkinter and turtle for Python 3.11.0 alpha7 on Ubuntu 18.04

This commit is contained in:
Vladimir Safonkin
2022-04-11 09:04:36 +02:00
parent 7e0253ff52
commit a1129e9e45

View File

@ -7,6 +7,7 @@ from __future__ import print_function
import importlib
import sys
import platform
# The Python standard library as of Python 3.0
standard_library = [
@ -265,6 +266,11 @@ if sys.version_info >= (3, 10):
if sys.version_info >= (3, 11):
standard_library.remove('binhex')
# Exclude tkinter and turtle for Python 3.11 alpha temporarily
if sys.version_info >= (3, 11) and platform.system() == 'Linux' and '18.04' in platform.version():
standard_library.remove('tkinter')
standard_library.remove('turtle')
# Remove tkinter and Easter eggs
excluded_modules = [
'antigravity',