_toolchain.cxx: use distutils from setuptools.
authorwhitequark <whitequark@whitequark.org>
Fri, 8 Oct 2021 17:48:00 +0000 (17:48 +0000)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 19:51:02 +0000 (19:51 +0000)
commit9f70256b094973e2e347a8dbe4a8136268626eac
tree68a1505ba3f5ab9716cbfb1e7cf9029a09931a0e
parent5bdd90afe8ae46831a8f68009bdcc347b8f3b932
_toolchain.cxx: use distutils from setuptools.

The distutils module from the standard library is deprecated and will
be removed in Python 3.12, and PEP 632 recommends using
distutils.ccompiler from setuptools, instead.

This code should eventually be rewritten to use zig-pypi, but for now
this suffices.
nmigen/_toolchain/cxx.py