(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_...
Right, I'll amend those.
Thanks Sandro
Hey Miro,
I've now added the macros as you suggested [1].
Thanks Sandro
[1] https://src.fedoraproject.org/rpms/mingw-python3/c/704b75953c6a887d967abb5ed...
On 06.11.20 09:13, Sandro Mani wrote:
(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_...
Right, I'll amend those.
Thanks Sandro