Skip to content

Instantly share code, notes, and snippets.

@rubensayshi
Last active April 14, 2016 20:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save rubensayshi/610f671798bb4417fa4b37f40a101f5d to your computer and use it in GitHub Desktop.
Save rubensayshi/610f671798bb4417fa4b37f40a101f5d to your computer and use it in GitHub Desktop.
Counterparty Custom Install
apt-get -y install runit software-properties-common python-software-properties git-core wget \
python3 python3-setuptools python3-dev python3-pip build-essential python3-sphinx python-virtualenv libsqlite3-dev python3-apsw python3-zmq
cd /where/your/projects/code/is
sudo echo "" # so that you won't get prompts during `python setup.py install_serpent` which messes up copy pasting this stuff
git clone git@github.com:CounterpartyXCP/counterparty-lib.git
cd counterparty-lib
git checkout develop
pyvenv-3.4 venv-3.4
source venv-3.4/bin/activate
python setup.py install_apsw
python setup.py install_serpent
python setup.py install
pip install pytest
py.test -x --skiptestbook=all counterpartylib/test/
cd ..
git clone git@github.com:CounterpartyXCP/counterparty-cli.git
cd counterparty-cli
git checkout develop
pyvenv-3.4 venv-3.4
source venv-3.4/bin/activate
python ../counterparty-lib/setup.py install_apsw
python ../counterparty-lib/setup.py install_serpent
python ../counterparty-lib/setup.py install
pip install https://github.com/CounterpartyXCP/counterparty-lib/tarball/develop
rm -rf venv-3.4/lib/python3.4/site-packages/counterparty_lib-9.54.0-py3.4.egg
ln -s ../counterparty-lib venv-3.4/lib/python3.4/site-packages/counterparty_lib-9.54.0-py3.4.egg
pip install prettytable
python setup.py install
counterparty-server --testnet start # probably want to `counterparty-server --testnet bootstrap` actually but yea, we're ready to do stuff at this point
# when making changes to counterparty-cli stuff rerun `python setup.py install` so it's copied into the `bin/counterparty-server` of the venv
# you're now ready to start changing things ...
git remote add rubensayshi git@github.com:rubensayshi/counterparty-lib.git
git fetch rubensayshi
git checkout p2sh-addresses
# I suggest you open a 2nd tab in terminal, but going back and forth is fine too xD
cd ..
cd counterparty-lib
git remote add rubensayshi git@github.com:rubensayshi/counterparty-lib.git
git fetch rubensayshi
git checkout p2sh-addresses
cd ..
cd counterparty-cli
python setup.py install
counterparty-server --testnet start # now running with the P2SH code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment