Skip to content

Commit

Permalink
Fixed wheel build process
Browse files Browse the repository at this point in the history
  • Loading branch information
TimSchneider42 committed May 27, 2024
1 parent 35911e5 commit 5ed962f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 3 deletions.
3 changes: 2 additions & 1 deletion docker/build/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ RUN mkdir -p /build
VOLUME /code
VOLUME /build
WORKDIR /build
ADD docker/common/manylinux-build-wheels /usr/bin/build-wheels
ADD docker/common/manylinux-build-wheels /usr/bin/manylinux-build-wheels
ADD docker/build/build-wheels /usr/bin/
ADD docker/build/run-tests /usr/bin/

# Cleaning up
Expand Down
8 changes: 6 additions & 2 deletions docker/common/manylinux-build-wheels
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/bash
set -e

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

# Log python versions
echo "Found the following Python versions:"
for PYBIN in /opt/python/*/bin; do
Expand All @@ -10,14 +12,16 @@ for PYBIN in /opt/python/*/bin; do
done

# Build python wheels
mkdir -p wheels
WHEELS_DIR="$(pwd)/wheels"
mkdir -p "${WHEELS_DIR}"
mkdir -p dist
mkdir -p dist_full

# Compile wheels
for PYBIN in /opt/python/*/bin; do
PYBIN_NAME="$(basename "$(dirname "$PYBIN")")"
if [[ "${PYBIN}" =~ ${PYBIN_SUPPORTED_VERSIONS} ]]; then
"${PYBIN}/pip" wheel /code -w wheels/
(mkdir -p "$PYBIN_NAME" && cd "$PYBIN_NAME" && "${PYBIN}/pip" wheel "$CODE_DIR" -w "${WHEELS_DIR}")
fi
done

Expand Down

0 comments on commit 5ed962f

Please sign in to comment.