Created
September 27, 2022 20:30
-
-
Save jclulow/8c65e23ea6c585a88837ad2046566210 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/oxide/build.sh b/oxide/build.sh | |
index 470617f..aa4002e 100755 | |
--- a/oxide/build.sh | |
+++ b/oxide/build.sh | |
@@ -1,19 +1,21 @@ | |
#!/bin/bash | |
set -e | |
+TOP=$(cd "$(dirname "$0")" && pwd) | |
+ | |
function find_sde_version() { | |
MANIFESTS=`find ${SDE} -maxdepth 1 -name "*.manifest"` | |
if [ x"$MANIFESTS" == x ]; then | |
echo "No manifest found - can't determine version" | |
exit 1 | |
fi | |
CNT=`/bin/ls $MANIFESTS | wc -l` | |
if [ $CNT != "1" ]; then | |
echo "Found multiple manifests - can't determine version" | |
exit 1 | |
fi | |
export SDE_VERSION=`basename $MANIFESTS | sed "s/bf-sde-//;s/.manifest//"` | |
} | |
@@ -122,30 +124,41 @@ while getopts hs:j:v: opt; do | |
exit 1 | |
fi | |
done | |
if [ x"$SDE_TARBALL" != x ]; then | |
if [ ! -f $SDE_TARBALL ]; then | |
echo "No SDE tarball found at $SDE_TARBALL" | |
exit 1 | |
fi | |
fi | |
if [ `uname -s` == SunOS ]; then | |
export ILLUMOS=1 | |
export TAR=gtar | |
export MAKE=gmake | |
- export PATH=${PATH}:/usr/lib/python3.9/bin | |
+ | |
+ # | |
+ # Establish Python virtual environment: | |
+ # | |
+ printf 'recreating Python virtual environment at "%s"...\n' "$TOP/venv" | |
+ rm -rf "$TOP/venv" | |
+ /usr/bin/python3.9 -m venv "$TOP/venv" | |
+ . "$TOP/venv/bin/activate" | |
+ which python | |
+ which pip | |
+ pip install -U pip wheel | |
+ pip install -U click click_logging cmakeast pyyaml jsonschema | |
else | |
export ILLUMOS=0 | |
export TAR=tar | |
export MAKE=make | |
alias gmake=make | |
fi | |
[ x"$SDE_TARBALL" != x ] && unpack_binaries | |
install_libavago | |
configure_build | |
[ $ILLUMOS -eq 1 ] && illumos_fixup_cmake | |
build |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment