Commit 9b92f5b6 authored by Gaetan Lepage's avatar Gaetan Lepage
Browse files

python3Packages.mmengine: use setuptools._distutils instead of deprecated distutils

parent 733dbf79
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -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 ];