Include solc install script in pipenv run commands; Remove geth deps

pull/336/head
Kieran Prasch 2018-06-27 12:32:36 -07:00
parent ef69c6249a
commit 8b1897b157
3 changed files with 28 additions and 32 deletions

33
Pipfile
View File

@ -3,41 +3,42 @@ url = "https://pypi.python.org/simple"
verify_ssl = true
name = "pypi"
[packages]
# Wheels for cryptography until the next release.
# Wheels for cryptography until the next release
cryptography35_linux = { path='./wheelhouse/cryptography-2.3.dev1-cp35-cp35m-linux_x86_64.whl', markers="python_version >= '3.5' and python_version < '3.6' and platform_system == 'Linux'"}
cryptography36_linux = { path='./wheelhouse/cryptography-2.3.dev1-cp36-cp36m-linux_x86_64.whl', markers="python_version >= '3.6' and python_version < '3.7' and platform_system == 'Linux'"}
cryptography36_darwin = { path='./wheelhouse/cryptography-2.3.dev1-cp36-cp36m-macosx_10_13_x86_64.whl', markers="python_version >= '3.6' and python_version < '3.7' and platform_system == 'Darwin'"}
rpcudp = {git = "https://github.com/nucypher/rpcudp", ref = "nucypher-depend"}
kademlia = {git = "https://github.com/nucypher/kademlia", ref = "nucypher-depend"}
PyNaCl = "*"
"pysha3" = "*"
bidict = "*"
py_ecc = "*"
SQLAlchemy = "*"
apistar = "*"
maya = "*"
pyumbral = {git = "https://github.com/nucypher/pyumbral.git", ref = "nucypher-depend"}
requests = "*"
maya = "*"
hendrix = "==3.0.0"
constantSorrow = {git = "https://github.com/nucypher/constantSorrow.git", ref = "nucypher-depend"}
bytestringSplitter = {git = "https://github.com/nucypher/byteStringSplitter.git", ref = "nucypher-depend"}
SQLAlchemy = "*"
apistar = "*"
rpcudp = {git = "https://github.com/nucypher/rpcudp", ref = "nucypher-depend"}
kademlia = {git = "https://github.com/nucypher/kademlia", ref = "nucypher-depend"}
PyNaCl = "*"
pysha3 = "*"
py_ecc = "*"
pyumbral = {git = "https://github.com/nucypher/pyumbral.git", ref = "nucypher-depend"}
web3 = "*"
[dev-packages]
mypy = "*"
pytest = "*"
mypy = "*"
pytest-mypy = "*"
pytest-cov = "*"
codecov = "*"
coverage = "*"
pytest-cov = "*"
py-solc = "*"
py-evm = "*"
eth-tester = "*"
py-geth = "*"
[pipenv]
allow_prereleases = true
[scripts]
install_solc = "./install_solc.sh"

11
install_solc.sh Executable file
View File

@ -0,0 +1,11 @@
#!/usr/bin/env bash
SOLC_VER="0.4.24"
SOL_BIN_PATH="$(pipenv --venv)/bin/solc"
echo "Downloading solidity compiler binary to: ${SOL_BIN_PATH}"
wget "https://github.com/ethereum/solidity/releases/download/v${SOLC_VER}/solc-static-linux" -O ${SOL_BIN_PATH}
echo "Setting executable permission on ${SOL_BIN_PATH}"
chmod +x ${SOL_BIN_PATH}
echo "Successfully Installed solc ${SOLC_VER}"

View File

@ -1,16 +0,0 @@
#!/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 .