You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflows will upload a Python Package using Twine when a release is created
2
+
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
This will install `solc` into ~/.solc-select/, so you have to add it to the PATH variable. Add this line, replacing USERNAME with your username, to your `.bashrc` or equivalent:
13
+
## Quickstart
36
14
37
15
```
38
-
export PATH=/home/USERNAME/.solc-select:$PATH
16
+
pip3 install solc-select
39
17
```
40
18
41
-
42
19
## Usage
43
20
44
-
The desired version of `solc` can be set with the `use` command. By default, the latest version is used.
45
-
21
+
The global version of `solc` can be set with the `solc-select use <version>` command:
46
22
```
47
23
$ solc --version
48
24
solc, the solidity compiler commandline interface
49
25
Version: 0.5.2+commit.1df8f40c.Linux.g++
50
-
$ solc use 0.4.24
26
+
$ solc-select use 0.4.24
27
+
Switched global version to 0.4.24
28
+
$ solc --version
51
29
solc, the solidity compiler commandline interface
52
30
Version: 0.4.24+commit.e67f0147.Linux.g++
53
31
```
54
32
55
-
56
-
In special scenarios the current version can also be overwritten with the `SOLC_VERSION` environment variable.
57
-
33
+
Use `SOLC_VERSION` environment variable to override the global version:
58
34
```
59
35
$ solc --version
60
36
solc, the solidity compiler commandline interface
@@ -64,63 +40,29 @@ solc, the solidity compiler commandline interface
64
40
Version: 0.5.2+commit.1df8f40c.Linux.g++
65
41
```
66
42
67
-
68
-
You can list all available versions with the special `--versions` argument:
43
+
You can list all available versions with `solc-select install`:
69
44
```
70
-
$ solc --versions
71
-
0.4.11
72
-
0.4.12
73
-
0.4.13
74
-
0.4.14
75
-
0.4.15
76
-
0.4.16
77
-
0.4.17
78
-
0.4.18
79
-
0.4.19
80
-
0.4.20
81
-
0.4.21
82
-
0.4.22
83
-
0.4.23
84
-
0.4.24
85
-
0.4.25
86
-
0.5.0
87
-
0.5.1
88
-
0.5.2
89
-
0.5.3
90
-
0.5.4
91
-
0.5.5
92
-
nightly
45
+
$ solc-select install
46
+
Available versions to install:
47
+
0.3.6
48
+
0.4.0
49
+
...
50
+
0.8.0
51
+
0.8.1
93
52
```
94
53
95
-
## Upgrading
96
-
97
-
Once installed, simply run
54
+
And install the one you need with with `solc-select install <version>`:
98
55
```
99
-
solc --upgrade
56
+
$ solc-select install 0.8.1
57
+
Installing '0.8.1'...
58
+
Version '0.8.1' installed.
100
59
```
101
-
to automatically upgrade `solc-select`. This will automatically pull the latest Docker image (or repo source, depending on your OS) and upgrade the local `solc` script, if necessary. The [DockerHub image for `solc-select`](https://hub.docker.com/r/trailofbits/solc-select) will automatically update every time Solidity is updated, which will typically be nightly.
0 commit comments