https://bugzilla.redhat.com/show_bug.cgi?id=2587604



--- Comment #3 from [email protected] ---
Spec URL: https://trix.fedorapeople.org/python-compressed-tensors.spec
SRPM URL:
https://trix.fedorapeople.org/python-compressed-tensors-0.20.1-1.fc46.src.rpm

> 1. [MUST] The Koji scratch build fails: Koji built this noarch package on a
>   ppc64le builder, where torch doesn't exist:
>     nothing provides python3.15dist(torch) >= 2 needed by
>     python3-accelerate-1.13.0-4.fc45.noarch
>   torch is built only for x86_64 and aarch64, and the generated runtime
>   BuildRequires pull it in even with tests off, so official builds would fail
>   whenever Koji picks ppc64le or s390x. Please use the same block as
>   python-accelerate:
>     # Define our own pytorch_arches macro until we have one system-wide.
>     %if %{undefined pytorch_arches}
>     %global pytorch_arches %{x86_64} %{arm64}
>     %endif
>     ExclusiveArch:  %{pytorch_arches} noarch

# compressed-tensors is a noarch package that should only be built/installable
on
# arches that are supported by PyTorch
%if %{undefined pytorch_arches}
%global pytorch_arches %{x86_64} %{arm64} noarch
%endif
ExclusiveArch:  %{pytorch_arches}

> 2. [SHOULD] The test-only BuildRequires (accelerate, datasets, nbconvert,
>   pytest, safetensors, tokenizers) are unconditional, but %pytest runs only
>   with --with check. Please wrap them in %if %{with check}. pip doesn't look
>   needed at all (%pyproject_buildrequires already provides what the build
>   backend needs).

%if %{with check}
BuildRequires:  python3dist(accelerate)
BuildRequires:  python3dist(datasets)
BuildRequires:  python3dist(nbconvert)
BuildRequires:  python3dist(pytest)
BuildRequires:  python3dist(safetensors)
BuildRequires:  python3dist(tokenizers)
%endif

- The comment on the setuptools_scm sed could say why (upstream pins ==8.2.0,
  Fedora has a newer one).

# allow fedora's newer setuptools version
sed -i 's/setuptools_scm==8.2.0/setuptools_scm>=8.2.0/' pyproject.toml


-- 
You are receiving this mail because:
You are always notified about changes to this product and component
You are on the CC list for the bug.
https://bugzilla.redhat.com/show_bug.cgi?id=2587604

Report this comment as SPAM: 
https://bugzilla.redhat.com/enter_bug.cgi?product=Bugzilla&format=report-spam&short_desc=Report%20of%20Bug%202587604%23c3

-- 
_______________________________________________
package-review mailing list -- [email protected]
To unsubscribe send an email to [email protected]
Fedora Code of Conduct: 
https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: 
https://lists.fedoraproject.org/archives/list/[email protected]
Do not reply to spam, report it: 
https://forge.fedoraproject.org/infra/tickets/issues/new

Reply via email to