_toolchain.cxx: ignore deprecation warning (on Python 3.6).

This code really shouldn't be using distutils, but for now this will
have to do.
This commit is contained in:
whitequark 2021-10-08 17:48:00 +00:00
parent 369cc59d69
commit 3379f072a0

View file

@ -1,7 +1,13 @@
import tempfile
import sysconfig
import warnings
import os.path
from setuptools import distutils
with warnings.catch_warnings():
warnings.filterwarnings(action="ignore", category=DeprecationWarning)
# this causes a DeprecationWarning on Python 3.6 (but not later)
from setuptools import distutils
__all__ = ["build_cxx"]