-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[docker-base-buster][docker-config-engine-buster] No longer install Python 2 #6162
Changes from all commits
42c792b
ebf10a4
cfb9452
b3fe099
67ffd8a
ebf67a0
b1f0b1d
6bad421
1c88eaf
3207bdd
2728f3f
a156956
7859787
82b64b6
5b84690
b0f53d0
6e8679b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,15 +8,13 @@ RUN apt-get update && \ | |
apt-get install -y \ | ||
# Dependencies for sonic-cfggen | ||
build-essential \ | ||
python-pip \ | ||
python-dev \ | ||
python-dev | ||
|
||
{%- if CONFIGURED_ARCH == "armhf" or CONFIGURED_ARCH == "arm64" %} | ||
RUN apt-get install -y \ | ||
libxslt-dev \ | ||
libz-dev \ | ||
libz-dev | ||
{%- endif %} | ||
python-setuptools | ||
|
||
RUN pip install --upgrade pip | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure why we need to modify stretch docker. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is simply to align the way we install/upgrade pip everywhere |
||
|
||
{% if docker_config_engine_stretch_debs.strip() %} | ||
# Copy locally-built Debian package dependencies | ||
|
@@ -40,7 +38,6 @@ COPY ["files/swss_vars.j2", "/usr/share/sonic/templates/"] | |
## Clean up | ||
RUN apt-get purge -y \ | ||
build-essential \ | ||
python-pip \ | ||
python-dev && \ | ||
apt-get clean -y && \ | ||
apt-get autoclean -y && \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,11 +6,7 @@ ENV DEBIAN_FRONTEND=noninteractive | |
RUN apt-get update | ||
|
||
# Dependencies for sonic-cfggen | ||
RUN apt-get install -y build-essential python-pip python-dev | ||
|
||
RUN pip install --upgrade pip | ||
|
||
RUN apt-get purge -y python-pip | ||
RUN apt-get install -y build-essential python-dev | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure why we modify this file. There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is simply to align the way we install/upgrade pip everywhere |
||
|
||
{% if docker_config_engine_debs.strip() %} | ||
COPY \ | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -370,7 +370,7 @@ RUN export VERSION=1.14.2 \ | |
&& rm go$VERSION.linux-*.tar.gz | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip2 install --upgrade pip | ||
RUN pip2 install --upgrade 'pip<21' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure why need this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In January, pip version 21 will be released, which will drop support for Python 2. Therefore, we need to ensure we install a version < 21 for Python 2 purposes. |
||
RUN apt-get purge -y python-pip python3-pip | ||
|
||
# For building Python packages | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -339,7 +339,7 @@ RUN export VERSION=1.14.2 \ | |
&& rm go$VERSION.linux-*.tar.gz | ||
|
||
RUN pip3 install --upgrade pip | ||
RUN pip2 install --upgrade pip | ||
RUN pip2 install --upgrade 'pip<21' | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. not sure why need this There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. In January, pip version 21 will be released, which will drop support for Python 2. Therefore, we need to ensure we install a version < 21 for Python 2 purposes. |
||
RUN apt-get purge -y python-pip python3-pip | ||
|
||
# For p4 build | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure why to touch it.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In January, pip version 21 will be released, which will drop support for Python 2. Therefore, we need to ensure we install a version < 21 for Python 2 purposes.