File tree Expand file tree Collapse file tree 13 files changed +31
-112
lines changed
Expand file tree Collapse file tree 13 files changed +31
-112
lines changed Original file line number Diff line number Diff line change 11FROM buildpack-deps:jessie
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
Original file line number Diff line number Diff line change 11FROM debian:jessie
22
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
5+
36# http://bugs.python.org/issue19846
47# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
58ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 11FROM buildpack-deps:wheezy
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
Original file line number Diff line number Diff line change 11FROM buildpack-deps:jessie
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
Original file line number Diff line number Diff line change 11FROM debian:jessie
22
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
5+
36# http://bugs.python.org/issue19846
47# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
58ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 11FROM buildpack-deps:wheezy
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
Original file line number Diff line number Diff line change 11FROM buildpack-deps:jessie
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
Original file line number Diff line number Diff line change 11FROM debian:jessie
22
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
5+
36# http://bugs.python.org/issue19846
47# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
58ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 11FROM buildpack-deps:wheezy
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
Original file line number Diff line number Diff line change 11FROM buildpack-deps:jessie
22
3- # divert many traces of Debian Python (so that they are not used by mistake)
4- # https://bugs.debian.org/33263 :(
5- RUN set -ex \
6- && for bits in \
7- # /etc/python* \
8- /usr/bin/*2to3* \
9- /usr/bin/*python* \
10- /usr/bin/pdb* \
11- /usr/bin/py* \
12- # /usr/lib/python* \
13- # /usr/share/python \
14- ; do \
15- dpkg-divert --rename "$bits" ; \
16- done
3+ # ensure local python is used over debian python
4+ ENV PATH /usr/local/bin:$PATH
175
186# http://bugs.python.org/issue19846
197# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
You can’t perform that action at this time.
0 commit comments