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
Github action to install python in amazon linux. The goal of this action is to be a drop in replacement
6
-
for the github's official [setup-python action](https://github.com/actions/setup-python) to the maximum extent possible.
6
+
for the Github's official [setup-python action](https://github.com/actions/setup-python) to the maximum extent possible.
7
7
8
8
## Why?
9
9
10
-
- This project exist because as of Nov 2023 [Github has no plans support amazon linux](https://github.com/actions/setup-python/issues/460#issuecomment-1185723652) for its official
10
+
- This project exists because, as of Nov 2023 [Github has no plans support amazon linux in the foreseeable future](https://github.com/actions/setup-python/issues/460#issuecomment-1185723652) for its official
11
11
[setup-python](https://github.com/actions/setup-python) action for amazon linux self-hosted runners.
12
12
13
+
## Usage
14
+
15
+
All you have to do is change "setup-python" to "setup-python-amazon-linux" in your workflows
16
+
17
+
```yaml
18
+
steps:
19
+
- uses: actions/checkout@v3
20
+
- uses: actions/setup-python-amazon-linux@v1
21
+
with:
22
+
python-version: '3.10'
23
+
- run: python my_script.py
24
+
```
25
+
26
+
For more options to the action, kindly refer [action.yml](./action.yml)
27
+
13
28
## Implementation caveat
14
29
15
30
This action compiles the desired version of python from source for the first time because the glibc version in use in
@@ -20,7 +35,7 @@ python: /lib64/libc.so.6: version `GLIBC_2.27' not found
20
35
python: /lib64/libc.so.6: version `GLIBC_2.28' not found
21
36
```
22
37
23
-
Hence only for the first time this action may like 3 to 4 minutes depending on the runner configuration. Post this only cache
38
+
Hence, only for the first time this action may like 3 to 4 minutes depending on the runner configuration. Post this only cache
24
39
will be used and hence will be very fast (4 to 5 seconds)
25
40
26
41
## Supported amazon linux flavours
@@ -30,21 +45,6 @@ will be used and hence will be very fast (4 to 5 seconds)
30
45
31
46
If you need support for more kindly raise an issue or a PR
32
47
33
-
## Usage
34
-
35
-
All you have to do is change "setup-python" to "setup-python-amazon-linux" in your workflows
36
-
37
-
```yaml
38
-
steps:
39
-
- uses: actions/checkout@v3
40
-
- uses: actions/setup-python-amazon-linux@v1
41
-
with:
42
-
python-version: '3.10'
43
-
- run: python my_script.py
44
-
```
45
-
46
-
For more options to the action, kindly refer [action.yml](./action.yml)
47
-
48
48
## Contributing
49
49
50
50
Contributions are most welcome! See [CONTRIBUTING.md](./CONTRIBUTING.md)
0 commit comments