provision: Ignore Python warnings while building requirements.

Build warnings are unfortunately very common in third-party packages.
They’re difficult to reliably detect since packages don’t always build
from source, and they can’t be whitelisted on a per-package basis
since they’re all attributed to setuptools or an anonymous code
string.

Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
Anders Kaseorg
2025-03-19 16:32:55 -07:00
committed by Tim Abbott
parent edf787f87d
commit ce81d8498d
4 changed files with 9 additions and 20 deletions

View File

@@ -29,4 +29,7 @@ else:
os.chdir(ZULIP_PATH)
run(["scripts/lib/install-uv"])
run(["uv", "sync", "--frozen", "--only-group=prod"])
run(
["uv", "sync", "--frozen", "--only-group=prod"],
env={k: v for k, v in os.environ.items() if k not in {"PYTHONDEVMODE", "PYTHONWARNINGS"}},
)