File tree Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Expand file tree Collapse file tree 1 file changed +10
-6
lines changed Original file line number Diff line number Diff line change 2
2
3
3
set -e
4
4
5
- # Install python packages needed to build simp_le
6
- apk --update add python py-setuptools git gcc py-pip musl-dev libffi-dev python-dev openssl-dev
5
+ # Install python and packages needed to build simp_le
6
+ apk add --update python3 git gcc musl-dev libffi-dev python3-dev openssl-dev
7
+
8
+ # Create expected symlinks if they don't exist
9
+ [[ -e /usr/bin/pip ]] || ln -sf /usr/bin/pip3 /usr/bin/pip
10
+ [[ -e /usr/bin/python ]] || ln -sf /usr/bin/python3 /usr/bin/python
7
11
8
12
# Get Let's Encrypt simp_le client source
9
13
branch=" 0.14.0"
@@ -13,14 +17,14 @@ git -C /src clone --depth=1 --branch $branch https://github.com/zenhack/simp_le.
13
17
# Install simp_le in /usr/bin
14
18
cd /src/simp_le
15
19
# pip install wheel requests
16
- for pkg in pip distribute setuptools wheel
20
+ for pkg in pip setuptools wheel
17
21
do
18
- pip install -U " ${pkg?} "
22
+ pip3 install -U " ${pkg?} "
19
23
done
20
- pip install .
24
+ pip3 install .
21
25
22
26
# Make house cleaning
23
27
cd /
24
28
rm -rf /src
25
- apk del git gcc py-pip musl-dev libffi-dev python -dev openssl-dev
29
+ apk del git gcc musl-dev libffi-dev python3 -dev openssl-dev
26
30
rm -rf /var/cache/apk/*
You can’t perform that action at this time.
0 commit comments