File: setup_env.sh

package info (click to toggle)
bladerf 0.2024.05-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 245,984 kB
  • sloc: ansic: 361,923; vhdl: 28,167; tcl: 14,424; python: 3,668; sh: 1,811; makefile: 1,255; xml: 1,020; cpp: 473; asm: 158; csh: 18
file content (23 lines) | stat: -rw-r--r-- 630 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/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"