Skip to content

Commit

Permalink
Ensure OUTPUT_PATH is defined as a fully qualified path.
Browse files Browse the repository at this point in the history
Signed-off-by: Wade Barnes <[email protected]>
  • Loading branch information
WadeBarnes committed Apr 24, 2024
1 parent 93764fd commit 08bc84c
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions build-scripts/ubuntu-2204/build-3rd-parties.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,16 @@
set -e
set -x

# Ensure OUTPUT_PATH is defined as a fully qualified path
pushd $(dirname $(realpath "$0"))
OUTPUT_PATH=${1:-.}
wheel2debconf="$(dirname "$(realpath "$0")")"/wheel2deb.yml
if [ ! -d "${OUTPUT_PATH}" ]; then
mkdir -p ${OUTPUT_PATH}
fi
OUTPUT_PATH=$(realpath ${OUTPUT_PATH})
popd

wheel2debconf="$(dirname "$(realpath "$0")")"/wheel2deb.yml

function build_rocksdb_deb {
VERSION=$1
Expand Down Expand Up @@ -37,7 +44,6 @@ function build_ioflo_deb {
python3 setup.py bdist_wheel
pushd dist
wheel2deb --config ${wheel2debconf}
mkdir -p ${OUTPUT_PATH}
mv output/*.deb ${OUTPUT_PATH}

popd
Expand Down Expand Up @@ -127,7 +133,6 @@ function build_from_pypi_wheel {
# Can't build cytoolz using wheel for rlp, but can't build rlp with fpm
rm -f /tmp/wheel/cytoolz*
wheel2deb --config ${wheel2debconf}
mkdir -p ${OUTPUT_PATH}
popd
mv /tmp/wheel/output/*.deb ${OUTPUT_PATH}
rm -rvf /tmp/wheel
Expand Down Expand Up @@ -178,4 +183,4 @@ build_from_pypi_wheel six
build_from_pypi_wheel sortedcontainers 2.1.0
build_from_pypi_wheel ujson 1.33

rm -vf ${OUTPUT_PATH}/python3-setuptools*.deb
rm -vf ${OUTPUT_PATH}/python3-setuptools*.deb

0 comments on commit 08bc84c

Please sign in to comment.