Skip to content

Instantly share code, notes, and snippets.

@tzhenghao
Created February 23, 2018 01:55
Show Gist options
  • Save tzhenghao/a1ffc1bda61a9ba99a4f9ec794534260 to your computer and use it in GitHub Desktop.
Save tzhenghao/a1ffc1bda61a9ba99a4f9ec794534260 to your computer and use it in GitHub Desktop.
This bash script cleans up the build and reinstalls the SDK
#!/bin/bash
# This bash script cleans up the build and reinstalls the SDK.
# To run this script, do: . test-cli.sh
VERSION_NUMBER=$(cat hologram-python/version.txt)
cd hologram-python
rm -rf dist
rm -rf hologram_python.egg-info
python setup.py sdist
cd /home/pi
rm -rf venv
virtualenv venv
. venv/bin/activate
pip install "hologram-python/dist/hologram-python-$VERSION_NUMBER.tar.gz"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment