Skip to content

Commit

Permalink
solc v0.4.18 and v0.4.19
Browse files Browse the repository at this point in the history
  • Loading branch information
pipermerriam committed Dec 5, 2017
1 parent 593f817 commit 17d3947
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 5 deletions.
14 changes: 14 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,20 @@ matrix:
env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.17
- python: "3.5"
env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.17
# solc 0.4.18
- python: "2.7"
env: TOX_POSARGS="-e py27" SOLC_VERSION=v0.4.18
- python: "3.4"
env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.18
- python: "3.5"
env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.18
# solc 0.4.19
- python: "2.7"
env: TOX_POSARGS="-e py27" SOLC_VERSION=v0.4.19
- python: "3.4"
env: TOX_POSARGS="-e py34" SOLC_VERSION=v0.4.19
- python: "3.5"
env: TOX_POSARGS="-e py35" SOLC_VERSION=v0.4.19
cache:
- pip: true
before_install:
Expand Down
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -191,24 +191,26 @@ listed platforms.
* `v0.4.15` (linux/osx)
* `v0.4.16` (linux/osx)
* `v0.4.17` (linux/osx)
* `v0.4.18` (linux/osx)
* `v0.4.19` (linux/osx)

Installation can be done via the command line:

```bash
$ python -m solc.install v0.4.17
$ python -m solc.install v0.4.19
```

Or from python using the `install_solc` function.

```python
>>> from solc import install_solc
>>> install_solc('v0.4.17')
>>> install_solc('v0.4.19')
```

The installed binary can be found under your home directory. The `v0.4.17`
binary would be located at `$HOME/.py-solc/solc-v0.4.17/bin/solc`. Older linux
The installed binary can be found under your home directory. The `v0.4.19`
binary would be located at `$HOME/.py-solc/solc-v0.4.19/bin/solc`. Older linux
installs will also require that you set the environment variable
`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.17/bin`
`LD_LIBRARY_PATH=$HOME/.py-solc/solc-v0.4.19/bin`


## Import path remappings
Expand Down
10 changes: 10 additions & 0 deletions solc/install.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
V0_4_15 = 'v0.4.15'
V0_4_16 = 'v0.4.16'
V0_4_17 = 'v0.4.17'
V0_4_18 = 'v0.4.18'
V0_4_19 = 'v0.4.19'


LINUX = 'linux'
Expand Down Expand Up @@ -398,6 +400,8 @@ def install_from_static_linux(identifier):
install_v0_4_15_linux = functools.partial(install_solc_from_static_linux, V0_4_15)
install_v0_4_16_linux = functools.partial(install_solc_from_static_linux, V0_4_16)
install_v0_4_17_linux = functools.partial(install_solc_from_static_linux, V0_4_17)
install_v0_4_18_linux = functools.partial(install_solc_from_static_linux, V0_4_18)
install_v0_4_19_linux = functools.partial(install_solc_from_static_linux, V0_4_19)


def install_from_source(identifier):
Expand All @@ -418,6 +422,8 @@ def install_from_source(identifier):
install_v0_4_15_osx = functools.partial(install_from_source, V0_4_15)
install_v0_4_16_osx = functools.partial(install_from_source, V0_4_16)
install_v0_4_17_osx = functools.partial(install_from_source, V0_4_17)
install_v0_4_18_osx = functools.partial(install_from_source, V0_4_18)
install_v0_4_19_osx = functools.partial(install_from_source, V0_4_19)


INSTALL_FUNCTIONS = {
Expand All @@ -435,6 +441,8 @@ def install_from_source(identifier):
V0_4_15: install_v0_4_15_linux,
V0_4_16: install_v0_4_16_linux,
V0_4_17: install_v0_4_17_linux,
V0_4_18: install_v0_4_18_linux,
V0_4_19: install_v0_4_19_linux,
},
OSX: {
V0_4_8: install_v0_4_8_osx,
Expand All @@ -445,6 +453,8 @@ def install_from_source(identifier):
V0_4_15: install_v0_4_15_osx,
V0_4_16: install_v0_4_16_osx,
V0_4_17: install_v0_4_17_osx,
V0_4_18: install_v0_4_18_osx,
V0_4_19: install_v0_4_19_osx,
}
}

Expand Down

0 comments on commit 17d3947

Please sign in to comment.