Skip to content
This repository has been archived by the owner on Oct 25, 2024. It is now read-only.

Commit

Permalink
Do not fail if '/dt7/usr/include/x86_64-linux-gnu/pythonX.Y' doesn't …
Browse files Browse the repository at this point in the history
…exist.

PiperOrigin-RevId: 477649450
Change-Id: I76a9e527bc3650197be5972315e0b92ad06f7669
  • Loading branch information
qstanczyk authored and copybara-github committed Sep 29, 2022
1 parent 8bce952 commit 6893186
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docker/build.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -81,9 +81,9 @@ RUN for python in ${python_version}; do \
RUN rm get-pip.py

# Removes existing links so they can be created to point where we expect.
RUN rm /dt7/usr/include/x86_64-linux-gnu/python3.8
RUN rm /dt7/usr/include/x86_64-linux-gnu/python3.9
RUN rm /dt7/usr/include/x86_64-linux-gnu/python3.10
RUN rm -f /dt7/usr/include/x86_64-linux-gnu/python3.8
RUN rm -f /dt7/usr/include/x86_64-linux-gnu/python3.9
RUN rm -f /dt7/usr/include/x86_64-linux-gnu/python3.10

# Needed until this is included in the base TF image.
RUN ln -s "/usr/include/x86_64-linux-gnu/python3.8" "/dt7/usr/include/x86_64-linux-gnu/python3.8"
Expand Down

0 comments on commit 6893186

Please sign in to comment.