/ scripts / setup.sh
setup.sh
1  #!/bin/bash
2  PYTHON="${PYTHON:-python3}"
3  if [ ! -d ./scripts/c_ext ]; then
4      echo "** Please run setup.sh from within the Greaseweazle folder";
5      echo "** eg: ./scripts/setup.sh";
6      exit 1;
7  fi ;
8  $PYTHON -m pip install --user bitarray crcmod pyserial requests wheel
9  $PYTHON -m pip install ./scripts/c_ext --target=./scripts/greaseweazle/optimised --upgrade