Skip to content

Instantly share code, notes, and snippets.

@jedie
Created April 2, 2017 17:03
Show Gist options
  • Save jedie/34a711ab32d5d9b8a97c078aee214972 to your computer and use it in GitHub Desktop.
Save jedie/34a711ab32d5d9b8a97c078aee214972 to your computer and use it in GitHub Desktop.
#!/usr/bin/env bash
VENV_DIR=$(pwd)/polar_venv
set -e
(
set -x
virtualenv --python=python2 ${VENV_DIR}
)
cd ${VENV_DIR}
source bin/activate
set -x
${VENV_DIR}/bin/pip install -U pip
${VENV_DIR}/bin/pip install -e git+https://github.com/walac/pyusb.git#egg=pyusb
cd ${VENV_DIR}/src/
git clone https://github.com/rsc-dev/A360.git
git clone https://github.com/rsc-dev/loophole.git
${VENV_DIR}/bin/pip install -r ${VENV_DIR}/src/A360/requirements.txt
${VENV_DIR}/bin/pip install protobuf
cd ${VENV_DIR}/src/A360/code/
python main.py -h
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment