Skip to content

Commit

Permalink
Switch to Python 3 (nginx-proxy#540)
Browse files Browse the repository at this point in the history
Python 2.7 will reach its end of life on 1st Jan 2020
  • Loading branch information
buchdag authored and bingozb committed Dec 4, 2019
1 parent 49f53d1 commit 365173c
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions install_simp_le.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@

set -e

# Install python packages needed to build simp_le
apk --update add python py-setuptools git gcc py-pip musl-dev libffi-dev python-dev openssl-dev
# Install python and packages needed to build simp_le
apk add --update python3 git gcc musl-dev libffi-dev python3-dev openssl-dev

# Create expected symlinks if they don't exist
[[ -e /usr/bin/pip ]] || ln -sf /usr/bin/pip3 /usr/bin/pip
[[ -e /usr/bin/python ]] || ln -sf /usr/bin/python3 /usr/bin/python

# Get Let's Encrypt simp_le client source
branch="0.14.0"
Expand All @@ -13,14 +17,14 @@ git -C /src clone --depth=1 --branch $branch https://github.com/zenhack/simp_le.
# Install simp_le in /usr/bin
cd /src/simp_le
#pip install wheel requests
for pkg in pip distribute setuptools wheel
for pkg in pip setuptools wheel
do
pip install -U "${pkg?}"
pip3 install -U "${pkg?}"
done
pip install .
pip3 install .

# Make house cleaning
cd /
rm -rf /src
apk del git gcc py-pip musl-dev libffi-dev python-dev openssl-dev
apk del git gcc musl-dev libffi-dev python3-dev openssl-dev
rm -rf /var/cache/apk/*

0 comments on commit 365173c

Please sign in to comment.