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

Avoid pip v20.3 constraints issue #813

Merged
merged 2 commits into from
Dec 1, 2020
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
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ run image, then you could add something like the following to the

Then run `make lock_deps` to update the `constraints.txt` file.

This currently requires `pip` version < 20.3. The latest version 20.3 does not work with
the automatically generated `constraints.txt` because it contains extras.

## The "fv3net" environment

The package `conda-lock` is used to ensure deterministic builds anaconda
Expand Down
2 changes: 1 addition & 1 deletion docker/prognostic_run/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ COPY docker/prognostic_run/requirements.txt /tmp/requirements.txt
COPY constraints.txt /tmp/constraints.txt

RUN pip3 install wheel && \
pip3 install --upgrade pip && \
pip3 install --upgrade pip==20.2.4 && \
pip3 install --no-cache-dir -c /tmp/constraints.txt -r /tmp/requirements.txt && \
ln -s /bin/python3 /bin/python && \
ln -s /bin/pip3 /bin/pip
Expand Down