From 3e94cd53ad02736cd4990e09ac0ecaf99f21fb51 Mon Sep 17 00:00:00 2001 From: Thomas Braun Date: Mon, 16 Dec 2024 23:21:28 +0100 Subject: [PATCH] tools: Always pass --no-deps for pip install This makes sure that we only install packages from requirements.txt. --- tools/documentation/Dockerfile | 2 +- tools/nwb-read-tests/Dockerfile | 2 +- tools/pre-commit/Dockerfile | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/documentation/Dockerfile b/tools/documentation/Dockerfile index 4f51b345a7..4f3fa69d17 100644 --- a/tools/documentation/Dockerfile +++ b/tools/documentation/Dockerfile @@ -34,7 +34,7 @@ COPY requirements.txt . # https://stackoverflow.com/a/75696359 RUN python -m venv --system-site-packages /home/ci/.venv && \ . /home/ci/.venv/bin/activate && \ - pip3 install -r requirements.txt + pip3 install --no-deps -r requirements.txt # https://stackoverflow.com/a/56286534 ENV PATH=${PATH}:/home/ci/.venv/bin diff --git a/tools/nwb-read-tests/Dockerfile b/tools/nwb-read-tests/Dockerfile index 3837ad3726..d3dacf5af4 100644 --- a/tools/nwb-read-tests/Dockerfile +++ b/tools/nwb-read-tests/Dockerfile @@ -30,7 +30,7 @@ COPY requirements.txt . # https://stackoverflow.com/a/75696359 RUN python -m venv --system-site-packages /home/ci/.venv && \ . /home/ci/.venv/bin/activate && \ - pip3 install -r requirements.txt + pip3 install --no-deps -r requirements.txt # https://stackoverflow.com/a/56286534 ENV PATH=/home/ci/.venv/bin:${PATH} diff --git a/tools/pre-commit/Dockerfile b/tools/pre-commit/Dockerfile index 12c7377e38..63d3d6f01e 100644 --- a/tools/pre-commit/Dockerfile +++ b/tools/pre-commit/Dockerfile @@ -30,7 +30,7 @@ COPY requirements.txt . # https://stackoverflow.com/a/75696359 RUN python -m venv --system-site-packages /home/ci/.venv && \ . /home/ci/.venv/bin/activate && \ - pip3 install -r requirements.txt + pip3 install --no-deps -r requirements.txt # https://stackoverflow.com/a/56286534 ENV PATH=${PATH}:/home/ci/.venv/bin