prereq-build: fix python distutils detection
authorRosen Penev <rosenp@gmail.com>
Fri, 9 Sep 2022 19:28:08 +0000 (12:28 -0700)
committerChristian Marangi <ansuelsmth@gmail.com>
Sun, 11 Sep 2022 14:12:24 +0000 (16:12 +0200)
commitbe6f0125514db8967a7181420db8ef20990bd93c
tree4eae8d7aa764048ecea331bcb85027dc3fe5af96
parent4d014a7bd6d8fbfe7dc4cebd6c55d85601231fa4
prereq-build: fix python distutils detection

Debian and by extension Ubuntu packages distutils in a suboptimal way
where import distutils works but none of the methods do.

This alternative check verifies that distutils is actually usable.

Signed-off-by: Rosen Penev <rosenp@gmail.com>
include/prereq-build.mk