Dev install script

pull/291/head^2
Michael Egorov 2018-06-05 20:52:12 -07:00
parent 5787546464
commit 63fa1c6740
No known key found for this signature in database
GPG Key ID: B7E0CCB4C21EBAB0
1 changed files with 16 additions and 0 deletions

16
setup.sh Executable file
View File

@ -0,0 +1,16 @@
#!/bin/bash
PYTHON="python3.6"
SOLC_VER="0.4.24"
python3 -m pipenv > /dev/null
if [[ $? != 0 ]]
then
echo "Installing pipenv in user directory..."
pip3 install --user pipenv
fi
python3 -m pipenv install --python $PYTHON --dev
wget "https://github.com/ethereum/solidity/releases/download/v${SOLC_VER}/solc-static-linux" -O "$(pipenv --venv)/bin/solc"
chmod +x "$(pipenv --venv)/bin/solc"
pipenv run pip3 install -e .