On 2.3.2018 18:06, Jason L Tibbitts III wrote:
"PV" == Petr Viktorin <pvikt...@redhat.com> writes:

PV> %install

PV> %install

PV> %if %{with python2}
PV> %py2_install
PV> %endif
PV> %if %{with python3}
PV> %py3_install
PV> %endif

So... why not just make %py2_install and %py3_install just do the
%{with python*} internally, so the result is just

%install
%py2_install
%py3_install

And things just work.  That way you only need the conditionals when
you're doing something not covered by the macros.

Not everybody wants to use those conditionals at all. I don't. I use git branches for this kind of things. When I see:

    %install
    %py2_install
    %py3_install

I expect it to be called for both 2 and 3 unconditionally. Hiding the condition in the maro makes things too magical for me.

--
Miro Hrončok
--
Phone: +420777974800
IRC: mhroncok
_______________________________________________
python-devel mailing list -- python-devel@lists.fedoraproject.org
To unsubscribe send an email to python-devel-le...@lists.fedoraproject.org

Reply via email to