bladeRF/host/libraries/libbladeRF_test/setup_env.sh
Ryan Thompson 2b655e9423 test: python virtual environment setup added to build output
The setup_env.sh and requirements.txt files are copied to build/output.

Ex:
$ ./output/setup_env.sh
$ source nuand/bin/activate
$ python ./output/libbladeRF_test_txrx_hwloop.py
2023-10-31 11:01:04 -05:00

23 lines
630 B
Bash

#!/bin/bash
set -e
echo "Creating virtual environment 'nuand'..."
python3 -m venv nuand
echo "Activating virtual environment 'nuand'..."
source nuand/bin/activate
echo "Installing Python requirements..."
pip3 install --requirement=output/requirements.txt
GREEN="\033[32m"
RESET="\033[0m"
echo -e "${GREEN}\n"
echo "###################################################"
echo "Python virtual environment successfully installed"
echo "###################################################"
echo -e "${RESET}"
echo "Usage:"
echo "$ source nuand/bin/activate"
echo "$ python output/libbladeRF_test_txrx_hwloop.py"
echo "$ deactivate"