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 1
1
FROM buildpack-deps:jessie
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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 1
1
FROM debian:jessie
2
2
3
+ # ensure local python is used over debian python
4
+ ENV PATH /usr/local/bin:$PATH
5
+
3
6
# http://bugs.python.org/issue19846
4
7
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
5
8
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:wheezy
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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 1
1
FROM buildpack-deps:jessie
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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 1
1
FROM debian:jessie
2
2
3
+ # ensure local python is used over debian python
4
+ ENV PATH /usr/local/bin:$PATH
5
+
3
6
# http://bugs.python.org/issue19846
4
7
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
5
8
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:wheezy
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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 1
1
FROM buildpack-deps:jessie
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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 1
1
FROM debian:jessie
2
2
3
+ # ensure local python is used over debian python
4
+ ENV PATH /usr/local/bin:$PATH
5
+
3
6
# http://bugs.python.org/issue19846
4
7
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
5
8
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:wheezy
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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 1
1
FROM buildpack-deps:jessie
2
2
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
17
5
18
6
# http://bugs.python.org/issue19846
19
7
# > 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