drgn/scripts/build_dists.sh
Stephen Brennan 9113c1ba51 scripts: Allow building just one Python release
Signed-off-by: Stephen Brennan <stephen.s.brennan@oracle.com>
2023-01-30 12:20:15 -08:00

23 lines
555 B
Bash
Executable File

#!/bin/sh
# Copyright (c) Meta Platforms, Inc. and affiliates.
# SPDX-License-Identifier: LGPL-2.1-or-later
set -eux
: "${PYTHON=python3}"
"$PYTHON" setup.py sdist
SDIST=dist/drgn-"$("$PYTHON" setup.py --version)".tar.gz
${DOCKER=docker} run -it \
--env PLAT=manylinux2014_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 \
--pull always \
quay.io/pypa/manylinux2014_x86_64 \
./scripts/build_manylinux_in_docker.sh "${1:-}"