projects
/
nmigen.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e78d7fd
)
_toolchain.cxx: ignore deprecation warning (on Python 3.6).
author
whitequark
<whitequark@whitequark.org>
Fri, 8 Oct 2021 17:48:00 +0000
(17:48 +0000)
committer
Luke Kenneth Casson Leighton
<lkcl@lkcl.net>
Fri, 31 Dec 2021 19:51:23 +0000
(19:51 +0000)
This code really shouldn't be using distutils, but for now this will
have to do.
nmigen/_toolchain/cxx.py
patch
|
blob
|
history
diff --git
a/nmigen/_toolchain/cxx.py
b/nmigen/_toolchain/cxx.py
index 430fb142f7e01755f37639ed2d34f316e224ada0..c43ffbc44c73d66906288bd65bc216104e5551e4 100644
(file)
--- a/
nmigen/_toolchain/cxx.py
+++ b/
nmigen/_toolchain/cxx.py
@@
-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"]