Skip to content
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
10 changes: 9 additions & 1 deletion scripts/pinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,21 @@ if [[ $# -ne 1 ]]; then
exit 1
fi

if [[ -n "${VIRTUAL_ENV:-}" ]]; then
echo "Deactivating virtual environment: ${VIRTUAL_ENV}" 1>&2
PATH="${PATH//$VIRTUAL_ENV\/bin:}"
PATH="${PATH//:$VIRTUAL_ENV\/bin/}"
unset VIRTUAL_ENV VIRTUAL_ENV_PROMPT
hash -r
fi

# Install smi, vrt, vrtd, libvrt*, libslash
DESTDIR="$1" cmake --build pbuild/smi --target install

# Install CMake toolchain modules (SlashTools)
DESTDIR="$1" cmake --build pbuild/cmake-tools --target install

python3 -m pip install --no-deps --root $1 linker/dist/slashkit-*.whl
python3 -m pip install --no-deps --ignore-installed --root "$1" linker/dist/slashkit-*.whl
if [ -f $1/usr/local/bin/slashkit ]; then
mv $1/usr/local/bin/slashkit $1/usr/bin/
mv $1/usr/local/lib/python3* $1/usr/lib/
Expand Down
Loading