Skip to content

Commit

Permalink
container: Remove local Python package installation
Browse files Browse the repository at this point in the history
  • Loading branch information
colluca committed Aug 10, 2024
1 parent 7983e4b commit badb821
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install local Python packages
run: pip install .
- name: Build Software
working-directory: target/snitch_cluster
run: |
Expand Down Expand Up @@ -81,6 +83,8 @@ jobs:
- uses: actions/checkout@v2
with:
submodules: 'recursive'
- name: Install local Python packages
run: pip install .
- name: Build Software
run: |
bender vendor init
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,8 @@ jobs:
- uses: actions/checkout@v4
with:
submodules: true
- name: Install local Python packages
run: pip install .
- name: Generate opcodes
run: |
./util/generate-opcodes.sh
Expand Down
8 changes: 4 additions & 4 deletions util/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -155,10 +155,10 @@ ENV VIRTUAL_ENV "/root/.venvs/snitch_cluster"
RUN /opt/python/bin/python3 -m venv ${VIRTUAL_ENV}
ENV PATH="${VIRTUAL_ENV}/bin:${PATH}"
# Install Python requirements
COPY . /tmp/snitch_cluster
RUN pip install -r /tmp/snitch_cluster/python-requirements.txt
RUN pip install /tmp/snitch_cluster/
RUN rm -rf /tmp/snitch_cluster
COPY python-requirements.txt /tmp/python-requirements.txt
COPY docs/requirements.txt /tmp/docs/requirements.txt
COPY sw/dnn/requirements.txt /tmp/sw/dnn/requirements.txt
RUN pip install -r /tmp/python-requirements.txt

# Add Verilator to PATH
ENV PATH "/tools/verilator/bin:${PATH}"
Expand Down

0 comments on commit badb821

Please sign in to comment.