astral-sh/uv

Specify Python platform via environment variable

Offen

#15.241 geöffnet am 12.08.2025

 (7 Kommentare) (2 Reaktionen) (0 zugewiesene Personen)Rust (3.111 Forks)batch import
configurationgood first issue

Repository-Metriken

Stars
 (84.934 Sterne)
PR-Merge-Metriken
 (Durchschn. Merge 7T 16h) (259 gemergte PRs in 30 T)

Beschreibung

Question

Hi, is it possible to specify Python platform for uv sync via an environment variable? A lot of options is supported but I couldn't find a way to specify this one in the documentation.

Use case: I use Pulumi IaC where the stack runs on ARM64 architecture on AWS in production. However, sometimes I need to provision the stack from local computer (x86_64 architecture) before deploying via GitHub Actions CI. I use uv toolchain with Pulumi but need it to install dependencies for the target architecture, e.g. when creating Lambda deployment packages or Docker images. AFAIK there's no way how I can supply command line options for uv when running Pulumi so env variable seems like the only option.

Platform

Ubuntu 24.04.3 x86_64

Version

uv 0.8.0

Contributor Guide