File tree 13 files changed +112
-31
lines changed 13 files changed +112
-31
lines changed Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:jessie
2
2
3
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
5
-
6
3
# http://bugs.python.org/issue19846
7
4
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
5
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:wheezy
2
2
3
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
5
-
6
3
# http://bugs.python.org/issue19846
7
4
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
5
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:wheezy
2
2
3
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
5
-
6
3
# http://bugs.python.org/issue19846
7
4
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
5
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:wheezy
2
2
3
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
5
-
6
3
# http://bugs.python.org/issue19846
7
4
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
5
ENV LANG C.UTF-8
Original file line number Diff line number Diff line change 1
1
FROM buildpack-deps:jessie
2
2
3
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
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
5
17
6
18
# http://bugs.python.org/issue19846
7
19
# > 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
- # remove several traces of debian python
4
- RUN apt-get purge -y python.*
5
-
6
3
# http://bugs.python.org/issue19846
7
4
# > At the moment, setting "LANG=C" on a Linux system *fundamentally breaks Python 3*, and that's not OK.
8
5
ENV LANG C.UTF-8
You can’t perform that action at this time.
0 commit comments