python3Packages.mmengine: use setuptools._distutils instead of deprecated distutils (#423183)

This commit is contained in:
Gaétan Lepage
2025-07-08 00:21:12 +02:00
committed by GitHub
@@ -67,6 +67,11 @@ buildPythonPackage rec {
+ ''
substituteInPlace tests/test_config/test_lazy.py \
--replace-fail "import numpy.compat" ""
substituteInPlace mmengine/utils/dl_utils/collect_env.py \
--replace-fail \
"from distutils" \
"from setuptools._distutils"
'';
build-system = [ setuptools ];