fix(deps): Lock setuptools version to <81 (#5284)

- Update Dockerfile to specify "setuptools<81"
- Modify ModuleUpdate.py to install setuptools with version constraint
This commit is contained in:
Adrian Priestley
2025-08-10 12:39:31 -02:30
committed by GitHub
parent 9bd535752e
commit c34c00baa4
2 changed files with 2 additions and 2 deletions

View File

@@ -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 .

View File

@@ -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: