setup.sh 348 B

123456789
  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
  9. (cd ./scripts/c_ext && $PYTHON setup.py install --install-platlib=../greaseweazle/optimised)