Skip to content

Instantly share code, notes, and snippets.

@michaelsproul
Last active February 18, 2018 20:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save michaelsproul/af6ece20e47e5dc2cf5ea7a05dbc0f73 to your computer and use it in GitHub Desktop.
Save michaelsproul/af6ece20e47e5dc2cf5ea7a05dbc0f73 to your computer and use it in GitHub Desktop.
Populus and Vyper setup
ethereum==1.6.1
eth-utils==0.7.1
#!/bin/bash
# Run this in a clean virtualenv
# Make sure constraints.txt is in the same directory as this script
set -o errexit
populus_repo="https://github.com/ethereum/populus.git"
vyper_repo="https://github.com/ethereum/vyper.git"
populus_commit="79ce7b18d34ff6bb744668ccd0a2869e8e50cea7"
vyper_commit="94da0d0536671013c1b000ffc60b883f47211d10"
mkdir -p deps
cd deps
echo "Installing Populus, commit: $populus_commit"
git clone "$populus_repo"
cd populus
git checkout "$populus_commit"
pip install -c ../../constraints.txt .
echo "Installing Vyper, commit: $vyper_commit"
cd ..
git clone "$vyper_repo"
cd vyper
git checkout "$vyper_commit"
pip install -c ../../constraints.txt .
echo "Holy shit maybe that worked?"
populus -h
vyper -h
@michaelsproul
Copy link
Author

updated the Populus repo to point to ethereum/populus rather than my fork now that ethereum/populus#438 is merged

@michaelsproul
Copy link
Author

On Debian Stretch (9.3), I also needed:

eth-utils==0.7.1

in constraints.txt

and at least these packages installed:

sudo apt install gcc libc6-dev libc-dev libssl-dev libgmp-dev pkg-config autoconf libtool libsecp256k1-0 libsecp256k1-dev

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment