Skip to content

Commit b817b1e

Browse files
fix(container): compile ROCm Cairo wheel without inherited sccache
Signed-off-by: functionstackx <47992694+functionstackx@users.noreply.github.com>
1 parent 155c53e commit b817b1e

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

‎container/templates/rocm_wheel_builder.Dockerfile‎

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,10 @@ RUN --mount=type=cache,target=/usr/local/cargo/registry,sharing=shared \
5656
python3 -m build --wheel --no-isolation --outdir /opt/dynamo/dist .
5757

5858
# Build the Cairo binding here so runtime dependency installation needs no compiler.
59-
RUN python3 -m pip wheel --no-deps --wheel-dir /opt/dynamo/dist pycairo==1.28.0
59+
# Explicit compilers keep Meson from auto-selecting sccache with the base image's
60+
# empty SCCACHE_S3_NO_CREDENTIALS setting.
61+
RUN CC=/usr/bin/cc CXX=/usr/bin/c++ \
62+
python3 -m pip wheel --no-deps --wheel-dir /opt/dynamo/dist pycairo==1.28.0
6063

6164
COPY container/deps/requirements.aisimulate.txt /tmp/requirements.aisimulate.txt
6265
RUN python3 -m pip download --only-binary=:all: --no-deps --no-index \

0 commit comments

Comments
 (0)