Skip to content

Commit

Permalink
Fixed output zip filename for docker build-wheels
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSchneider42 committed May 28, 2024
1 parent a159262 commit 2c61f46
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
9 changes: 6 additions & 3 deletions docker/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@ ARG LIBFRANKA_VERSION
RUN /tmp/common/install-dependencies

ARG PYBIN_SUPPORTED_VERSIONS="cp3(7m|8|9|10|11|12)"
# Preserve argument for runtime
ENV PYBIN_SUPPORTED_VERSIONS=${PYBIN_SUPPORTED_VERSIONS}
RUN /tmp/common/manylinux-setup-pip

# Set working directory
Expand All @@ -19,9 +17,14 @@ RUN mkdir -p /build
VOLUME /code
VOLUME /build
WORKDIR /build
ADD docker/common/manylinux-build-wheels /usr/bin/manylinux-build-wheels
ADD docker/common/manylinux-build-wheels /usr/bin/
ADD docker/common/dependency_versions /usr/bin/
ADD docker/build/build-wheels /usr/bin/
ADD docker/build/run-tests /usr/bin/

# Cleaning up
RUN rm -rf /tmp/common

# Preserve arguments for runtime
ENV PYBIN_SUPPORTED_VERSIONS=${PYBIN_SUPPORTED_VERSIONS}
ENV LIBFRANKA_VERSION=${LIBFRANKA_VERSION}
4 changes: 4 additions & 0 deletions docker/common/manylinux-build-wheels
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
#!/bin/bash
set -e

SCRIPT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
. "${SCRIPT_DIR}/dependency_versions"

CODE_DIR="${1:-$(pwd)}"

# Log python versions
Expand Down Expand Up @@ -46,4 +49,5 @@ echo "Built the following wheels:"
ls dist

mkdir -p output
LIBFRANKA_VERSION="${LIBFRANKA_VERSION:-${LIBFRANKA_DEFAULT_VERSION}}"
zip -r "output/libfranka_${LIBFRANKA_VERSION//./-}_wheels.zip" dist/

0 comments on commit 2c61f46

Please sign in to comment.