drgn/scripts/build_dists.sh
Omar Sandoval 6a8d335a1f Add scripts to build manylinux2010 wheels
One nice side effect of commit e0921c5bdb ("libdrgn: don't use OpenMP
tasking") is that drgn now works with older versions of libgomp that
don't implement taskloop, including version 4.4 in manylinux2010. So, we
can finally build manylinux2010 wheels. These scripts are based on
scripts from Stephen Brennan, with some cleanups and updates for changes
in drgn's build requirements.

Closes #69.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2021-05-07 09:50:13 -07:00

22 lines
490 B
Bash
Executable File

#!/bin/sh
set -eux
: "${PYTHON=python3}"
"$PYTHON" setup.py sdist
SDIST=dist/drgn-"$("$PYTHON" setup.py --version)".tar.gz
: "${DOCKER=docker}"
$DOCKER pull quay.io/pypa/manylinux2010_x86_64
$DOCKER run -it \
--env PLAT=manylinux2010_x86_64 \
--env SDIST="$SDIST" \
--env OWNER="$(id -u):$(id -g)" \
--volume "$(pwd)":/io:ro \
--volume "$(pwd)/dist":/io/dist \
--workdir /io \
--hostname drgn \
--rm \
quay.io/pypa/manylinux2010_x86_64 \
./scripts/build_manylinux_in_docker.sh