diff --git a/docker/Dockerfile b/docker/Dockerfile index 17ee9be316..6e20f6eab4 100644 --- a/docker/Dockerfile +++ b/docker/Dockerfile @@ -209,6 +209,13 @@ RUN --mount=type=cache,target=/opt/uv/cache \ sed -i 's/^nvidia-cutlass-dsl\[cu13\]/nvidia-cutlass-dsl/' requirements/cuda.txt; \ sed -i 's/^humming-kernels\[cu13\]/humming-kernels[cu12]/' requirements/cuda.txt; \ fi \ + && if [ "$(uname -m)" = "aarch64" ]; then \ + # The manylinux 2_28 (glibc 2.28) aarch64 builder cannot use + # tilelang's manylinux_2_34 wheel, so tilelang builds from sdist. + # Cython 3.3 rejects tilelang's hardcoded Py_LIMITED_API=3.8. + printf 'cython<3.3\n' > /tmp/build-constraints.txt \ + && export UV_BUILD_CONSTRAINT=/tmp/build-constraints.txt; \ + fi \ && if [ "${PYTORCH_NIGHTLY}" = "1" ]; then \ echo "Installing torch nightly..." \ && uv pip install --python /opt/venv/bin/python3 torch torchaudio torchvision --pre \