File tree Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Expand file tree Collapse file tree 1 file changed +32
-0
lines changed Original file line number Diff line number Diff line change 1+ #! /bin/bash
2+ package_name=" $1 "
3+ arch=" $2 "
4+ if [ -z " $package_name " ]
5+ then
6+ # shellcheck disable=SC2210
7+ & > 2 echo " Please pass package name as a first argument of this script ($0 )"
8+ exit 1
9+ fi
10+ if [ -z " $arch " ]
11+ then
12+ # shellcheck disable=SC2210
13+ & > 2 echo " Please pass package architecture as a second argument of this script ($0 )"
14+ exit 1
15+ fi
16+
17+ manylinux1_image_prefix=" quay.io/pypa/manylinux2014_"
18+ dock_ext_args=" "
19+
20+ docker pull " ${manylinux1_image_prefix}${arch} " &
21+ declare docker_pull_pid=$!
22+
23+ echo
24+ echo
25+ echo " waiting for docker pull pid $docker_pull_pid to complete downloading container for $arch arch..."
26+ wait $docker_pull_pid # await for docker image for current arch to be pulled from hub
27+
28+ echo " Building wheel for $arch arch"
29+ [ " $arch " == " i686" ] && dock_ext_args=" linux32"
30+ docker run --rm -v " $( pwd) " :/io " ${manylinux1_image_prefix}${arch} " $dock_ext_args /io/tools/build-wheels.sh " $package_name "
31+
32+ dock_ext_args=" " # Reset docker args, just in case
You can’t perform that action at this time.
0 commit comments