Skip to content

Commit 24b7e39

Browse files
committed
ci: use --user installs for clean PEP 668 compliance
1 parent ccd1392 commit 24b7e39

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ jobs:
106106
uses: actions/checkout@v6
107107

108108
- name: Install lint dependencies
109-
run: pip install --no-cache-dir flake8==7.3.0 reuse==5.1.0
109+
run: pip install --no-cache-dir --user flake8==7.3.0 reuse==5.1.0
110110

111111
- name: Run flake8
112112
run: flake8

Dockerfile.ci

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,13 @@ RUN add-apt-repository -y ppa:deadsnakes/ppa && \
2929
COPY test/requirements.txt /tmp/requirements-test.txt
3030
COPY docs/requirements.txt /tmp/requirements-docs.txt
3131

32-
RUN pip install --no-cache-dir setuptools wheel build
33-
RUN pip install --no-cache-dir \
32+
RUN pip install --no-cache-dir --user setuptools wheel build
33+
RUN pip install --no-cache-dir --user \
3434
-r /tmp/requirements-test.txt \
3535
-r /tmp/requirements-docs.txt
36+
37+
# Add user site-packages to PATH
38+
ENV PATH="/root/.local/bin:$PATH"
3639
ENV CUDA_HOME="/usr/local/cuda"
3740
ENV PATH="$PATH:/usr/local/cuda/bin"
3841
ENV LD_LIBRARY_PATH="/usr/local/cuda/lib64:${LD_LIBRARY_PATH}"

0 commit comments

Comments
 (0)