(Forwarding also to list)



-------- Forwarded Message --------
Subject: Re: Macros for trivial mingw-python-* packages
Date: Fri, 6 Nov 2020 09:12:18 +0100
From: Sandro Mani <manisandro@gmail.com>
To: Miro HronĨok <mhroncok@redhat.com>



Hey Sandro. Before we proceed, would it make sense to introduce some macros for this, similar to %py3_build and %py3_install?

E.g. you should be able to do this currently:

%global __python3 %{mingw64_python3}
...
%py3_build
...
%py3_install
...
%{python3_sitearch}/...


However I realize that might be problematic given the two stacks (32- and 64bit). So what if we have:

%mingw32_py3_build
%mingw64_py3_build

And

%mingw32_py3_install
%mingw64_py3_install

Similarly to %{mingw32/64_python3} and %{mingw32/64_python3_sitearch}?

Sound good?

Yep good idea, I'll look into it.

Side note: I see this:

%{mingw64_python3_sitearch}/*

Please, don't do that, see https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_files_to_include

Right, I'll amend those.

Thanks
Sandro