Skip to content

Commit 7209b6e

Browse files
committed
COMP: manylinux aarch64 wheel script support
1 parent 1e46b0c commit 7209b6e

File tree

2 files changed

+21
-9
lines changed

2 files changed

+21
-9
lines changed

scripts/internal/manylinux-build-common.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ set -e -x
55

66
script_dir=$(cd $(dirname $0) || exit 1; pwd)
77
# Workaround broken FindPython3 in CMake 3.17
8-
sudo cp ${script_dir}/Support.cmake /usr/share/cmake-3.17/Modules/FindPython/
8+
if test -e /usr/share/cmake-3.17/Modules/FindPython/Support.cmake; then
9+
sudo cp ${script_dir}/Support.cmake /usr/share/cmake-3.17/Modules/FindPython/
10+
fi
911

1012
# Versions can be restricted by passing them in as arguments to the script
1113
# For example,
@@ -33,6 +35,9 @@ case $(uname -p) in
3335
x86_64)
3436
ARCH=x64
3537
;;
38+
aarch64)
39+
ARCH=aarch64
40+
;;
3641
*)
3742
die "Unknown architecture $(uname -p)"
3843
;;

scripts/internal/manylinux-build-wheels.sh

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,11 +10,21 @@ Python3_LIBRARY=""
1010
script_dir=$(cd $(dirname $0) || exit 1; pwd)
1111
source "${script_dir}/manylinux-build-common.sh"
1212
# Install prerequirements
13-
mkdir -p /work/tools
14-
pushd /work/tools > /dev/null 2>&1
15-
curl https://data.kitware.com/api/v1/file/5c0aa4b18d777f2179dd0a71/download -o doxygen-1.8.11.linux.bin.tar.gz
16-
tar -xvzf doxygen-1.8.11.linux.bin.tar.gz
17-
popd > /dev/null 2>&1
13+
yum install -y doxygen
14+
if ! type ninja > /dev/null 2>&1; then
15+
git clone git://github.com/ninja-build/ninja.git
16+
pushd ninja
17+
git checkout release
18+
cmake -Bbuild-cmake -H.
19+
cmake --build build-cmake
20+
cp build-cmake/ninja /usr/local/bin/
21+
popd
22+
fi
23+
#mkdir -p /work/tools
24+
#pushd /work/tools > /dev/null 2>&1
25+
#curl https://data.kitware.com/api/v1/file/5c0aa4b18d777f2179dd0a71/download -o doxygen-1.8.11.linux.bin.tar.gz
26+
#tar -xvzf doxygen-1.8.11.linux.bin.tar.gz
27+
#popd > /dev/null 2>&1
1828
# -----------------------------------------------------------------------
1929

2030
# Build standalone project and populate archive cache
@@ -73,7 +83,6 @@ for PYBIN in "${PYBINARIES[@]}"; do
7383
-DPython3_EXECUTABLE:FILEPATH=${Python3_EXECUTABLE} \
7484
-DPython3_INCLUDE_DIR:PATH=${Python3_INCLUDE_DIR} \
7585
-DITK_WRAP_DOC:BOOL=ON \
76-
-DDOXYGEN_EXECUTABLE:FILEPATH=/work/tools/doxygen-1.8.11/bin/doxygen
7786
# Cleanup
7887
${PYBIN}/python setup.py clean
7988

@@ -108,7 +117,6 @@ for PYBIN in "${PYBINARIES[@]}"; do
108117
-DITK_LEGACY_SILENT:BOOL=ON \
109118
-DITK_WRAP_PYTHON:BOOL=ON \
110119
-DITK_WRAP_DOC:BOOL=ON \
111-
-DDOXYGEN_EXECUTABLE:FILEPATH=/work/tools/doxygen-1.8.11/bin/doxygen \
112120
-G Ninja \
113121
${source_path} \
114122
&& ninja \
@@ -135,7 +143,6 @@ for PYBIN in "${PYBINARIES[@]}"; do
135143
-DCMAKE_CXX_FLAGS:STRING="${compile_flags}" \
136144
-DCMAKE_C_FLAGS:STRING="${compile_flags}" \
137145
-DITK_WRAP_DOC:BOOL=ON \
138-
-DDOXYGEN_EXECUTABLE:FILEPATH=/work/tools/doxygen-1.8.11/bin/doxygen \
139146
|| exit 1
140147
# Cleanup
141148
${PYBIN}/python setup.py clean

0 commit comments

Comments
 (0)