Patrick Kelley 8fd444092b initial
2025-05-07 15:35:15 -04:00

21 lines
549 B
Bash
Executable File

#!/bin/sh
echo "Preparing macOS environment"
sysctl hw.model hw.machine hw.ncpu hw.physicalcpu hw.logicalcpu
set -e
set -x
brew update
brew upgrade cmake
brew install openssl@3
# Install btest in a venv since under macos pip refuses to install into the
# global prefix since it is explicitly "externally managed".
python3 -mvenv ./btest.venv
# shellcheck disable=SC1091
. ./btest.venv/bin/activate
pip install btest
# Ensure executables installed via pip are available:
# sudo sh -c 'echo "$(python3 -m site --user-base)/bin" >/etc/paths.d/pip'