From 503c902eba38777867622d36fae383707407cb65 Mon Sep 17 00:00:00 2001 From: odidev Date: Fri, 16 Jul 2021 07:05:45 +0000 Subject: [PATCH] Add linux aarch64 wheel build support Signed-off-by: odidev --- .travis.yml | 10 ++++++++++ .../Source/DeepDrivePython/build/build-linux-wheels.sh | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.travis.yml b/.travis.yml index 94956f91..4e1718df 100644 --- a/.travis.yml +++ b/.travis.yml @@ -20,11 +20,21 @@ matrix: env: - DOCKER_IMAGE=quay.io/pypa/manylinux1_i686 - PRE_CMD=linux32 + - sudo: required + dist: focal + arch: arm64 + services: + - docker + env: + - DOCKER_IMAGE=quay.io/pypa/manylinux2014_aarch64 before_install: - sudo apt-get update - sudo apt-get install -y cppcheck - pip install -r .ci/requirements.txt - pip install --upgrade --force-reinstall --ignore-installed --no-cache-dir git+git://github.com/deepdrive/problem-constants#egg=problem-constants + - if [ "${TRAVIS_CPU_ARCH}" == "arm64" ]; then + pip install --upgrade pip; + fi - pip install --upgrade --force-reinstall --ignore-installed --no-cache-dir git+git://github.com/botleague/botleague-helpers#egg=botleague-helpers install: - docker pull $DOCKER_IMAGE diff --git a/Plugins/DeepDrivePlugin/Source/DeepDrivePython/build/build-linux-wheels.sh b/Plugins/DeepDrivePlugin/Source/DeepDrivePython/build/build-linux-wheels.sh index 2e5e7dfe..8ff601a3 100755 --- a/Plugins/DeepDrivePlugin/Source/DeepDrivePython/build/build-linux-wheels.sh +++ b/Plugins/DeepDrivePlugin/Source/DeepDrivePython/build/build-linux-wheels.sh @@ -12,7 +12,7 @@ export DEEPDRIVE_SRC_DIR="$( dirname "$( dirname ${DIR})" )" echo DEEPDRIVE_SRC_DIR=${DEEPDRIVE_SRC_DIR} # Get python versions on docker image, i.e. /opt/python/cp35-cp35m/bin /opt/python/cp36-cp36m/bin ... -py_versions_str=`cd ${DIR} && /opt/python/cp35-cp35m/bin/python -c "import build; print(build.get_centos_py_versions())"` +py_versions_str=`cd ${DIR} && /opt/python/cp36-cp36m/bin/python -c "import build; print(build.get_centos_py_versions())"` py_versions=( ${py_versions_str} ) # Delete previous builds (for testing locally)