_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:
parent
369cc59d69
commit
3379f072a0
|
@ -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"]
|
||||
|
|
Loading…
Reference in a new issue