Drop support for Python 3.6.

This commit is contained in:
Catherine 2022-04-04 09:39:28 +00:00
parent 9a5a6142d9
commit 64771a065a
6 changed files with 15 additions and 12 deletions

View file

@ -19,7 +19,7 @@ def build_cxx(*, cxx_sources, output_name, include_dirs, macros):
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
# This emits a DeprecationWarning on Python 3.6 and 3.10.
# This emits a DeprecationWarning on Python 3.10.
from setuptools import distutils
cc_driver = distutils.ccompiler.new_compiler()

View file

@ -12,14 +12,11 @@ except ImportError:
except ImportError:
importlib_metadata = None # not installed
try:
from importlib import resources as importlib_resources
try:
from importlib import resources as importlib_resources
try:
importlib_resources.files # py3.9+ stdlib
except AttributeError:
import importlib_resources # py3.8- shim
except ImportError:
import importlib_resources # py3.6- shim
importlib_resources.files # py3.9+ stdlib
except AttributeError:
import importlib_resources # py3.8- shim
except ImportError:
importlib_resources = None