The way for building python 3 modules currently

Arkadiusz Miśkiewicz arekm at maven.pl
Sat Feb 8 13:53:27 CET 2025


On 07/02/2025 14:48, Arkadiusz Miśkiewicz wrote:
> 
> What's "the way" for building python3 modules for rpm usage currently?
> 
> setup.py is obsolete and all our macros use setup.py
> 
> 
> 
> I've started using:
> 
> %build
> %{__python3} -m build --wheel --no-isolation --outdir build-3
> 
> %install
> %{__python3} -m installer --destdir=$RPM_BUILD_ROOT build-3/*.whl

... so added macros for that:
%py3_build_pyproject and %py3_install_pyproject

https://git.pld-linux.org/gitweb.cgi?p=packages/rpm-pld-macros.git;a=commit;h=3c0f261530e6f869174a8d6dbb2bc35ecbbc97e5

-- 
Arkadiusz Miśkiewicz, arekm / ( maven.pl | pld-linux.org )


More information about the pld-devel-en mailing list