Skip to content

A fast, helpful, and open-source document parser

nit

Logan Markewich9ee6ec266587
diff --git a/ocr/paddleocr/pyproject.toml b/ocr/paddleocr/pyproject.toml
index 20d5b62..fd1c5da 100644
--- a/ocr/paddleocr/pyproject.toml
+++ b/ocr/paddleocr/pyproject.toml
@@ -14,6 +14,15 @@ dependencies = [
"uvicorn>=0.41.0",
]
+[tool.uv]
+# paddlepaddle publishes platform wheels unevenly (3.4.0 shipped win_amd64
+# only). Forcing these environments makes uv resolve to a version that has
+# wheels for the platforms we actually run on, instead of the newest tag.
+required-environments = [
+ "sys_platform == 'linux' and platform_machine == 'x86_64'",
+ "sys_platform == 'darwin' and platform_machine == 'arm64'",
+]
+
[tool.uv.sources]
paddlepaddle = { index = "paddle" }