SHA256
14
0
forked from pool/python-uv

Accepting request 1290024 from devel:languages:python

Forwarded request #1289932 from dgarcia

- Reduce memory usage during build, removing lto=fat from Cargo.toml.
    bsc#1245526

OBS-URL: https://build.opensuse.org/request/show/1290024
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-uv?expand=0&rev=32
This commit is contained in:
2025-07-03 10:10:46 +00:00
committed by Git OBS Bridge
2 changed files with 11 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Jul 2 10:33:55 UTC 2025 - Daniel Garcia <daniel.garcia@suse.com>
- Reduce memory usage during build, removing lto=fat from Cargo.toml.
bsc#1245526
------------------------------------------------------------------- -------------------------------------------------------------------
Wed Jul 2 08:35:47 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com> Wed Jul 2 08:35:47 UTC 2025 - Ondřej Súkup <mimi.vx@gmail.com>

View File

@@ -103,8 +103,13 @@ drop-in replacement for common pip and pip-tools workflows.
%prep %prep
%autosetup -p1 -a1 -n uv-%{version} %autosetup -p1 -a1 -n uv-%{version}
%ifnarch x86_64
# Reduce memory consumption for non x86 arches
sed -i '/lto = "fat"/d' Cargo.toml
%endif
%build %build
export LDFLAGS="--no-keep-memory"
export CARGO_AUDITABLE="auditable" export CARGO_AUDITABLE="auditable"
export CARGO_INCREMENTAL=0 export CARGO_INCREMENTAL=0
export CARGO_FEATURE_VENDORED=1 export CARGO_FEATURE_VENDORED=1