Skip to content
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

[python-requirements] Pin setuptools version to < 66.0.0 #17098

Merged
merged 1 commit into from
Jan 17, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion ci/install-package-dependencies.sh
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ export PATH=$HOME/.local/bin:$PATH
# specify that an older version of a package must be used for a certain
# Python version. If that information is not read, pip installs the latest
# version, which then fails to run.
python3 -m pip install --user -U pip setuptools
python3 -m pip install --user -U pip "setuptools<66.0.0"

pip3 install --user -r python-requirements.txt

Expand Down
2 changes: 1 addition & 1 deletion doc/getting_started/_index.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ Some tools in this repository are written in Python 3 and require Python depende
We recommend installing the latest version of `pip` and `setuptools` (especially if on older systems such as Ubuntu 18.04) using:

```console
python3 -m pip install --user -U pip setuptools
python3 -m pip install --user -U pip "setuptools<66.0.0"
```

The `pip` installation instructions use the `--user` flag to install without root permissions.
Expand Down
2 changes: 1 addition & 1 deletion site/docs/builder.Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -19,5 +19,5 @@ ENV PATH "/root/.local/bin:${PATH}"
# specify that an older version of a package must be used for a certain
# Python version. If that information is not read, pip installs the latest
# version, which then fails to run.
RUN python3 -m pip install --user -U pip setuptools
RUN python3 -m pip install --user -U pip "setuptools<66.0.0"
RUN pip3 install --user -r python-requirements.txt
2 changes: 1 addition & 1 deletion util/container/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ RUN /tmp/rustup-init.sh -y --default-toolchain ${RUST_VERSION} \
# version, which then fails to run.
ENV PATH "/home/dev/.local/bin:${PATH}"
COPY --chown=dev:dev python-requirements.txt /tmp/python-requirements.txt
RUN python3 -m pip install --user -U pip setuptools \
RUN python3 -m pip install --user -U pip "setuptools<66.0.0" \
&& python3 -m pip install --user -r /tmp/python-requirements.txt \
--no-warn-script-location \
&& rm -f /tmp/python-requirements.txt
Expand Down