Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow setting PYTHON executable for macOS build #69

Merged
merged 1 commit into from
Dec 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions integration/macos/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@
set -Exeo pipefail
shopt -s nullglob

PYTHON=${PYTHON:-python3}

extraopts=
if [ -n "${SRC_REF}" ]; then
extraopts+=" --source-ref=${SRC_REF}"
Expand Down Expand Up @@ -53,19 +55,19 @@ if [ -z "${PACKAGE}" ]; then
fi

if [ -z "${VIRTUAL_ENV}"]; then
python3 -m venv .venv
${PYTHON} -m venv .venv
source .venv/bin/activate
python3 -m pip install -U pip setuptools wheel
${PYTHON} -m pip install -U pip setuptools wheel
fi

python3 -m pip install --upgrade --upgrade-strategy=eager \
${PYTHON} -m pip install --upgrade --upgrade-strategy=eager \
git+https://github.com/edgedb/edgedb-pkg

for old in "${dest}"/*.tar; do
rm -f "${old}"
done

echo python3 -m metapkg build --dest="${dest}" ${extraopts} "${PACKAGE}"
python3 -m metapkg build -vvv --dest="${dest}" ${extraopts} "${PACKAGE}"
echo ${PYTHON} -m metapkg build --dest="${dest}" ${extraopts} "${PACKAGE}"
${PYTHON} -m metapkg build -vvv --dest="${dest}" ${extraopts} "${PACKAGE}"

ls -al "${dest}"
Loading