Skip to content

Commit

Permalink
Update cross compilation for manylinux
Browse files Browse the repository at this point in the history
  • Loading branch information
idavis committed Dec 12, 2024
1 parent 40d5662 commit 7aba031
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 44 deletions.
4 changes: 1 addition & 3 deletions .ado/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,7 @@ extends:
python -m pip install auditwheel patchelf
ls target/wheels
ls target/wheels/*.whl | xargs auditwheel show
ls target/wheels/*.whl | xargs auditwheel repair --wheel-dir ./target/wheels/ --plat manylinux_2_31_x86_64
ls target/wheels/*.whl | xargs auditwheel repair --wheel-dir ./target/wheels/ --plat manylinux_2_35_x86_64
rm target/wheels/*-linux_x86_64.whl
ls target/wheels
displayName: Run auditwheel for Linux Wheels
Expand All @@ -313,10 +313,8 @@ extends:
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['arch'], 'aarch64'))
- script: |
chmod +x ./docker/linux-aarch64/build.sh
chmod +x ./docker/linux-aarch64/run.sh
./docker/linux-aarch64/build.sh
./docker/linux-aarch64/run.sh
displayName: Run auditwheel and python tests for Linux aarch64 Wheels
condition: and(eq(variables['Agent.OS'], 'Linux'), eq(variables['arch'], 'aarch64'))
Expand Down
19 changes: 0 additions & 19 deletions docker/linux-aarch64/Dockerfile

This file was deleted.

17 changes: 0 additions & 17 deletions docker/linux-aarch64/build.sh

This file was deleted.

2 changes: 1 addition & 1 deletion docker/linux-aarch64/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ echo "SCRIPT_DIR: ${SCRIPT_DIR}"
WHEEL_ARCH="${WHEEL_ARCH:-aarch64}"
echo "WHEEL_ARCH: ${WHEEL_ARCH}"

WHEEL_PLATFORM="${WHEEL_PLATFORM:-manylinux_2_31_${WHEEL_ARCH}}"
WHEEL_PLATFORM="${WHEEL_PLATFORM:-manylinux_2_35_${WHEEL_ARCH}}"
echo "WHEEL_PLATFORM: ${WHEEL_PLATFORM}"

PIP_DIR="${PIP_DIR:-${SCRIPT_DIR}/../../pip}"
Expand Down
8 changes: 4 additions & 4 deletions docker/linux-aarch64/run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,11 @@ set -e
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
echo "SCRIPT_DIR: ${SCRIPT_DIR}"

TAG="${TAG:-qsharp-linux-aarch64-runner}"
echo "TAG: ${TAG}"
BASE_IMAGE="${BASE_IMAGE:-mcr.microsoft.com/cbl-mariner/base/python:3.9}"
echo "BASE_IMAGE: ${BASE_IMAGE}"

VOLUME_ROOT=$(realpath ${SCRIPT_DIR}/../..)
echo "VOLUME_ROOT: ${VOLUME_ROOT}"

echo "docker run --platform linux/arm64/v8 -v ${VOLUME_ROOT}:/qsharp -e WHEEL_DIR='/qsharp/target/wheels' ${TAG} bash /qsharp/docker/linux-aarch64/entrypoint.sh"
docker run --platform linux/arm64/v8 -v ${VOLUME_ROOT}:/qsharp -e WHEEL_DIR='/qsharp/target/wheels' ${TAG} bash /qsharp/docker/linux-aarch64/entrypoint.sh
echo "docker run --platform linux/arm64/v8 -v ${VOLUME_ROOT}:/qsharp -e WHEEL_DIR='/qsharp/target/wheels' ${BASE_IMAGE} bash /qsharp/docker/linux-aarch64/entrypoint.sh"
docker run --platform linux/arm64/v8 -v ${VOLUME_ROOT}:/qsharp -e WHEEL_DIR='/qsharp/target/wheels' ${BASE_IMAGE} bash /qsharp/docker/linux-aarch64/entrypoint.sh

0 comments on commit 7aba031

Please sign in to comment.