Skip to content

Commit

Permalink
Reapply "split out libvips into common"
Browse files Browse the repository at this point in the history
This reverts commit c1674ca.
  • Loading branch information
bjia56 committed Jun 1, 2024
1 parent c1674ca commit 42f840e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 13 deletions.
12 changes: 0 additions & 12 deletions packages/pyvips/Dockerfile → packages/pyvips/Dockerfile.stage1
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
FROM ghcr.io/bjia56/armv7l-wheel-builder:main
ARG PYTHON_VERSION
ARG VERSION
ARG OUTPUT_DIR

WORKDIR /
RUN select_python ${PYTHON_VERSION}
Expand All @@ -16,13 +14,3 @@ RUN wget -q https://github.com/libvips/libvips/releases/download/v8.15.2/vips-8.
meson compile && \
meson install

ENV CFLAGS='-I/tmp/vendor/include'
ENV LDFLAGS='-L/tmp/vendor/lib'
ENV LD_LIBRARY_PATH=/tmp/vendor/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig

COPY . /repo
RUN /repo/armv7l_build_wheels.sh ${PYTHON_VERSION} ${VERSION}

RUN mkdir -p ${OUTPUT_DIR} && \
cp build${PYTHON_VERSION}/wheelhouse/pyvips*manylinux*armv7l.whl ${OUTPUT_DIR}
15 changes: 15 additions & 0 deletions packages/pyvips/Dockerfile.stage2
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
FROM ghcr.io/bjia56/armv7l-wheel-builder:main
ARG PYTHON_VERSION
ARG VERSION
ARG OUTPUT_DIR

ENV CFLAGS='-I/tmp/vendor/include'
ENV LDFLAGS='-L/tmp/vendor/lib'
ENV LD_LIBRARY_PATH=/tmp/vendor/lib:$LD_LIBRARY_PATH
ENV PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig

COPY . /repo
RUN /repo/armv7l_build_wheels.sh ${PYTHON_VERSION} ${VERSION}

RUN mkdir -p ${OUTPUT_DIR} && \
cp build${PYTHON_VERSION}/wheelhouse/pyvips*manylinux*armv7l.whl ${OUTPUT_DIR}
4 changes: 3 additions & 1 deletion packages/pyvips/build.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
strategy: dockerfile
source:
- ./Dockerfile
- file: ./Dockerfile.stage1
common: true
- file: ./Dockerfile.stage2

python:
versions:
Expand Down

0 comments on commit 42f840e

Please sign in to comment.