forked from fkrull/docker-multi-python
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsetup.sh
More file actions
36 lines (30 loc) · 756 Bytes
/
setup.sh
File metadata and controls
36 lines (30 loc) · 756 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/bin/sh
set -eu
. /etc/os-release
apt-get update
apt-get install -y gnupg
echo "deb http://ppa.launchpad.net/deadsnakes/ppa/ubuntu ${UBUNTU_CODENAME} main" > /etc/apt/sources.list.d/deadsnakes.list
apt-key adv --keyserver keyserver.ubuntu.com --recv-keys F23C5A6CF475977595C89F51BA6932366A755776
apt-get update
apt-get install -y \
python3-pip \
python3-distutils \
python3-setuptools \
\
python2.? \
python2.?-dev \
python3.? \
python3.?-dev \
python3.?-venv \
python3.?? \
python3.??-dev \
python3.??-venv \
;
pip3 install \
flit \
tox \
virtualenv \
;
apt-get --purge autoremove -y gnupg
rm -rf /var/cache/apt/lists
dpkg-query --show python2.? python3.? python3.?? > /versions