Skip to content

Local UI to run and train LLMs and diffusion models. Supports GGUF, MLX, Qwen3.8, DeepSeek-V4.1, MiniMax-H3, Gemma 4, FLUX and more.

Publish only the wheel to PyPI, not the sdist (#10202)

Daniel Hand18b0f7ed57f
diff --git a/build.sh b/build.sh
index 19149ede5ab..ba0a8257ac8 100644
--- a/build.sh
+++ b/build.sh
@@ -114,6 +114,16 @@ _restore_studio_build_info
trap - EXIT
# 5. Optionally publish
+#
+# Wheel only. The sdist is still built above, because --verify-dist checks the
+# release stamp in every artifact and a local sdist is the cheapest way to catch
+# a packaging change that only shows up in the source tree. It is not uploaded.
+#
+# A release is ~169MB across both artifacts, and the PyPI project size limit is
+# 10GB; the sdist is the larger half. Uploading only the wheel halves what each
+# release costs against that limit. Nothing is lost for installers: the wheel is
+# py3-none-any, so pip and uv resolve to it on every platform and Python, and the
+# sdist is only reachable through --no-binary or a mirror that vendors sources.
if [ "${1:-}" = "publish" ]; then
- python -m twine upload dist/*
+ python -m twine upload dist/*.whl
fi