Skip to content

Commit b89be7e

Browse files
authored
Switch to Python 3 (#540)
Python 2.7 will reach its end of life on 1st Jan 2020
1 parent 6910b72 commit b89be7e

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

install_simp_le.sh

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,12 @@
22

33
set -e
44

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
711

812
# Get Let's Encrypt simp_le client source
913
branch="0.14.0"
@@ -13,14 +17,14 @@ git -C /src clone --depth=1 --branch $branch https://github.com/zenhack/simp_le.
1317
# Install simp_le in /usr/bin
1418
cd /src/simp_le
1519
#pip install wheel requests
16-
for pkg in pip distribute setuptools wheel
20+
for pkg in pip setuptools wheel
1721
do
18-
pip install -U "${pkg?}"
22+
pip3 install -U "${pkg?}"
1923
done
20-
pip install .
24+
pip3 install .
2125

2226
# Make house cleaning
2327
cd /
2428
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
2630
rm -rf /var/cache/apk/*

0 commit comments

Comments
 (0)