Skip to content

Commit

Permalink
Fix gfortran install on aarch64 host
Browse files Browse the repository at this point in the history
  • Loading branch information
camearle20 committed Jan 24, 2024
1 parent 91a1876 commit c9ef5b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion vision/Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,9 @@ py-deps:
ENV VIRTUAL_ENV=/RobotCode2024/vision/cross_venv/cross
ENV PATH="/RobotCode2024/vision/cross_venv/bin:$VIRTUAL_ENV/bin:$PATH"
ENV MAKEFLAGS="-j$(nproc)"
RUN apt-get update -y && apt-get install -y dh-autoreconf gfortran-aarch64-linux-gnu
RUN apt-get update -y && apt-get install -y dh-autoreconf
# If gfortran-aarch64-linux-gnu does not exist, we are on arm64, so just install gfortran
RUN apt-get update -y && (apt-get install -y gfortran-aarch64-linux-gnu || apt-get install -y gfortran)
RUN TARGETPLATFORM=linux/arm64 xx-apt-get update -y && TARGETPLATFORM=linux/arm64 xx-apt-get install -y libopenblas-dev libjpeg-dev
RUN wget https://files.pythonhosted.org/packages/a4/9b/027bec52c633f6556dba6b722d9a0befb40498b9ceddd29cbe67a45a127c/numpy-1.24.4.tar.gz
RUN tar -zvxf numpy-1.24.4.tar.gz
Expand Down

0 comments on commit c9ef5b2

Please sign in to comment.