-
-
Save F483/2012f04fc085484b1ebf56dd56624421 to your computer and use it in GitHub Desktop.
Counterparty Custom Install
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
virtualenv -p /usr/bin/python3.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 | |
virtualenv -p /usr/bin/python3.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 bootstrap | |
counterparty-server --testnet --backend-port=18332 --backend-user=BITCOINRPCUSER --backend-password=BITCOINRPCPASSWORD start | |
# 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-cli.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 --backend-port=18332 --backend-user=BITCOINRPCUSER --backend-password=BITCOINRPCPASSWORD start |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment