Skip to content

Commit 0ed375c

Browse files
authored
Merge pull request #15 from LibrePCB/ubuntu-18.04-python-3
Ubuntu 18.04: Switch from Python 2.7 to Python 3.6
2 parents 1738483 + 558d6ec commit 0ed375c

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

ubuntu-18.04/Dockerfile

+7-8
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,10 @@ RUN apt-get update -q && apt-get -y -q install --no-install-recommends \
2323
libqt5sql5-sqlite \
2424
make \
2525
openssl \
26-
python \
27-
python-pip \
28-
python-setuptools \
29-
python-wheel \
26+
python3 \
27+
python3-pip \
28+
python3-setuptools \
29+
python3-wheel \
3030
qt5-default \
3131
qtdeclarative5-dev \
3232
qtdeclarative5-qtquick2-plugin \
@@ -38,10 +38,9 @@ RUN apt-get update -q && apt-get -y -q install --no-install-recommends \
3838
zlib1g-dev \
3939
&& rm -rf /var/lib/apt/lists/*
4040

41-
# Install Python packages
42-
RUN pip install \
43-
"future==0.17.1" \
44-
"flake8==3.7.7"
41+
# Set Python3 as default Python version
42+
RUN update-alternatives --install /usr/bin/python python /usr/bin/python3 100
43+
RUN update-alternatives --install /usr/bin/pip pip /usr/bin/pip3 100
4544

4645
# LibrePCB's unittests expect that there is a USERNAME environment variable
4746
ENV USERNAME="root"

0 commit comments

Comments
 (0)