fix: install setuptools for the packaging guard

This commit is contained in:
Abdessamad Derraz committed 2026-11-06 03:32:26 +01:00
1 parent af3c90e448
commit cb17145665
5 files changed
+12 -3

No files matched your search

+4
View File
@@ -2766,6 +2766,10 @@ class TheProjectInstallsWithPip(unittest.TestCase):
import importlib.util # noqa: PLC0415
if importlib.util.find_spec("setuptools") is None:
# The dev extra and CI install it: skipped there, the guard held
# nothing on any run.
if os.environ.get("CI"):
self.fail("CI must install setuptools")
self.skipTest("setuptools is not installed")
program = (
"from setuptools.dist import Distribution\n"