Skip to content

Commit

Permalink
Change sed command to update the file inplace.
Browse files Browse the repository at this point in the history
pipe-ing to the file was causing an empty file.
  • Loading branch information
neshdev committed Aug 17, 2023
1 parent d9d1e25 commit 213a24a
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Dockerfile.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -114,11 +114,9 @@ RUN pip uninstall -y pyarrow && \
mamba install -y cudf cuml && \
/tmp/clean-layer.sh

# TODO(neshdev): Resolve pandas dependency another way
RUN cat /opt/conda/lib/python3.10/site-packages/cudf/api/types.py \
| sed 's/^is_extension_type/# is_extension_type/g' \
| sed 's/^is_categorical/# is_categorical/g' \
> /opt/conda/lib/python3.10/site-packages/cudf/api/types.py
# TODO: b/296444923 - Resolve pandas dependency another way
RUN sed -i 's/^is_extension_type/# is_extension_type/g' /opt/conda/lib/python3.10/site-packages/cudf/api/types.py \
&& sed -i 's/^is_categorical/# is_categorical/g' /opt/conda/lib/python3.10/site-packages/cudf/api/types.py
{{ end }}

# Install PyTorch
Expand Down

0 comments on commit 213a24a

Please sign in to comment.