Skip to content

Commit

Permalink
tools: Always pass --no-deps for pip install
Browse files Browse the repository at this point in the history
This makes sure that we only install packages from requirements.txt.
  • Loading branch information
t-b committed Dec 16, 2024
1 parent c12744f commit 3e94cd5
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tools/documentation/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion tools/nwb-read-tests/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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}
2 changes: 1 addition & 1 deletion tools/pre-commit/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3e94cd5

Please sign in to comment.