Skip to content

Commit

Permalink
Install hdf5 library and pkg-config via apt in arm64 build (#468)
Browse files Browse the repository at this point in the history
This is needed to install h5py from sdist since a wheel is not available for arm64.
This package is needed by aiidalab-qe-vibroscopy.

The installation of pkg-config is required, it was not sufficient to just
install the hdf5 and then define the HDF5_DIR environment variable.
  • Loading branch information
mikibonacci authored Jun 11, 2024
1 parent 6b33a73 commit 7e70469
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stack/base/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ ENV EXTRA_APT_PACKAGES "curl povray rsync build-essential"
# but we install it here so that we don't have to invoke apt multiple times.
ARG TARGETARCH
RUN if [ "$TARGETARCH" = "arm64" ]; then \
EXTRA_APT_PACKAGES="erlang ${EXTRA_APT_PACKAGES}"; \
EXTRA_APT_PACKAGES="erlang libhdf5-serial-dev pkg-config ${EXTRA_APT_PACKAGES}"; \
fi;\
apt-get update --yes && \
apt-get install --yes --no-install-recommends ${EXTRA_APT_PACKAGES} && \
Expand Down

0 comments on commit 7e70469

Please sign in to comment.