From 78f8e1eaa95071ae21c2f6d8f16768c7330c5f15 Mon Sep 17 00:00:00 2001 From: rdb Date: Mon, 16 Oct 2023 00:23:06 +0200 Subject: [PATCH] test_wheel: Update set of packages to install with pip setuptools is required because test_imports imports direct.dist.commands [skip ci] --- makepanda/test_wheel.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/makepanda/test_wheel.py b/makepanda/test_wheel.py index 350f420eab..cfe270099e 100755 --- a/makepanda/test_wheel.py +++ b/makepanda/test_wheel.py @@ -41,7 +41,7 @@ def test_wheel(wheel, verbose=False): if sys.version_info >= (3, 10): packages += ["pytest>=6.2.4"] else: - packages += ["pytest"] + packages += ["pytest>=3.9.0"] if sys.version_info[0:2] == (3, 4): if sys.platform == "win32": @@ -50,6 +50,9 @@ def test_wheel(wheel, verbose=False): # See https://github.com/python-attrs/attrs/pull/807 packages += ["attrs<21"] + if sys.version_info >= (3, 12): + packages += ["setuptools"] + if subprocess.call([python, "-m", "pip", "install"] + packages) != 0: shutil.rmtree(envdir) sys.exit(1)