Skip to content

Commit

Permalink
Fix numpy install (3.12) (#631)
Browse files Browse the repository at this point in the history
Co-authored-by: Franck Nijhof <[email protected]>
  • Loading branch information
cdce8p and frenck authored Oct 8, 2023
1 parent 3daaf41 commit e22c72d
Showing 1 changed file with 17 additions and 2 deletions.
19 changes: 17 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,15 @@ ARG \

WORKDIR /usr/src

SHELL ["/bin/bash", "-exo", "pipefail", "-c"]

# Install requirements
COPY \
requirements.txt \
requirements_${CPYTHON_ABI}.txt \
/usr/src/
RUN \
set -x \
&& apk add --no-cache \
apk add --no-cache \
rsync \
openssh-client \
patchelf \
Expand All @@ -33,6 +34,20 @@ RUN \
&& if [ "${BUILD_ARCH}" = "i386" ]; then \
export NPY_DISABLE_SVML=1; \
fi \
&& if [ "${CPYTHON_ABI}" = "cp312" ] && [ "${BUILD_ARCH}" != "amd64" ]; then \
apk add --no-cache --virtual .build-dependencies2 \
openblas-dev \
&& pip3 install --no-cache-dir \
--extra-index-url "https://wheels.home-assistant.io/musllinux-index/" \
git+https://github.com/scikit-build/ninja-python-distributions.git@89b1a02be6b47919c4da3daad06f2a020a16cc7f \
&& pip3 install --no-cache-dir \
--extra-index-url "https://wheels.home-assistant.io/musllinux-index/" \
Cython packaging patchelf pyproject-metadata setuptools \
&& pip3 install --no-cache-dir \
--no-build-isolation \
--extra-index-url "https://wheels.home-assistant.io/musllinux-index/" \
$(cat /usr/src/requirements_${CPYTHON_ABI}.txt | grep numpy); \
fi \
&& pip3 install --no-cache-dir \
-r /usr/src/requirements.txt \
-r /usr/src/requirements_${CPYTHON_ABI}.txt \
Expand Down

0 comments on commit e22c72d

Please sign in to comment.