From c34c00baa433cfb8cb01fa8308b73ecb9dd1cec9 Mon Sep 17 00:00:00 2001 From: Adrian Priestley <47989725+a-priestley@users.noreply.github.com> Date: Sun, 10 Aug 2025 12:39:31 -0230 Subject: [PATCH] fix(deps): Lock setuptools version to <81 (#5284) - Update Dockerfile to specify "setuptools<81" - Modify ModuleUpdate.py to install setuptools with version constraint --- Dockerfile | 2 +- ModuleUpdate.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 46393aab..9e3c5f0d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -28,7 +28,7 @@ COPY requirements.txt WebHostLib/requirements.txt RUN pip install --no-cache-dir -r \ WebHostLib/requirements.txt \ - setuptools + "setuptools<81" COPY _speedups.pyx . COPY intset.h . diff --git a/ModuleUpdate.py b/ModuleUpdate.py index e6ac570e..2e58c4f7 100644 --- a/ModuleUpdate.py +++ b/ModuleUpdate.py @@ -78,7 +78,7 @@ def install_pkg_resources(yes=False): check_pip() if not yes: confirm("pkg_resources not found, press enter to install it") - subprocess.call([sys.executable, "-m", "pip", "install", "--upgrade", "setuptools"]) + subprocess.call([sys.executable, "-m", "pip", "install", "--upgrade", "setuptools<81"]) def update(yes: bool = False, force: bool = False) -> None: