diff --git a/c2cciutils/publish.py b/c2cciutils/publish.py index 6410b1ece..13f96f266 100644 --- a/c2cciutils/publish.py +++ b/c2cciutils/publish.py @@ -301,7 +301,13 @@ def pip( use_poetry = True break subprocess.run( - ["pip", "install", *pyproject.get("build-system", {}).get("requires", [])], check=True + [ + "pip", + "install", + "importlib-metadata<8.0.0", + *pyproject.get("build-system", {}).get("requires", []), + ], + check=True, ) if use_poetry: freeze = subprocess.run(["pip", "freeze"], check=True, stdout=subprocess.PIPE)