Skip to content

Instantly share code, notes, and snippets.

@siso
Created November 14, 2014 02:50
Show Gist options
  • Save siso/5eb892bc4b666e68e07e to your computer and use it in GitHub Desktop.
Save siso/5eb892bc4b666e68e07e to your computer and use it in GitHub Desktop.
Rax-AutoScaler - test pip package locally
# create pip package
(raxas)siso@pdp11:~/workspace/rax-autoscaler$ make source
# create fresh virtual environment
(test-raxas)siso@pdp11:~/tmp/20141114-130825$ mkvirtualenv test-raxas
# install pip package locally
(test-raxas)siso@pdp11:~/tmp/20141114-130825$ tar xvfz ~/workspace/rax-autoscaler/dist/RAX-AutoScaler-0.1.0.tar.gz && cd RAX-AutoScaler-0.1.0 && python setup.py install
# test it
(test-raxas)siso@pdp11:~/tmp/20141114-130825/RAX-AutoScaler-0.1.0$ autoscale --version
rax-autoscaler v0.1.0 -- Copyright @ 2014 Rackspace
# clean testing environment
(test-raxas)siso@pdp11:~/tmp/20141114-130825/RAX-AutoScaler-0.1.0$ cd .. && rm -rf RAX-AutoScaler-0.1.0/
# either uninstall RAX-AutoScaler
(test-raxas)siso@pdp11:~/tmp/20141114-130825$ pip uninstall -y RAX-AutoScaler
Uninstalling RAX-AutoScaler:
Successfully uninstalled RAX-AutoScaler
# or delete and delete virtualenv
(test-raxas)siso@pdp11:~/tmp/20141114-130825$ deactivate
siso@pdp11:~/tmp/20141114-130825$ rmvirtualenv test-raxas
Removing test-raxas...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment