Re: Supporting multiple python runtimes with automake

Yuval Turgeman <[email protected]>
Newsgroups gmane.comp.sysutils.automake.patches
Message-ID <CAGDbUechg6E3he3WLN9GQco0YLGyyHVK+Mhy6MFxtZegY0JvoA@mail.gmail.com>
On Tue, Jan 30, 2018 at 2:22 PM, Sandro Bonazzola <[email protected]>
wrote:

>
>
> 2018-01-30 11:26 GMT+01:00 Yuval Turgeman <[email protected]>:
>
>> Hi,
>>
>> I added 2 macros (AM_PATH_PYTHON2 and AM_PATH_PYTHON3) to support both
>> python2 and python3 on the same system.  It works in the same way that
>> AM_PATH_PYTHON works (just a small wrapper around it).  Please notice that
>> AM_PATH_PYTHON and AM_PATH_PYTHONx can't be called together.
>>
>> The motive for doing this is Fedora Packaging Guidelines for Python (
>> https://fedoraproject.org/wiki/Packaging:Python) which requires a
>> package to be built for both runtimes.
>>
>
> Are you planning to use this for installing python2 and python3 artifacts
> in a single make install call instead of having to go through 2 runs of
> configure / make / make install ?
>


Yes, the alternative to this is to run everything twice with a different
`PYTHON=` value, unless I'm missing something and there's an easier way
that would make this patch irrelevant.




>
>
>
>>
>> Thanks,
>> Yuval.
>>
>
>
>
> --
>
> SANDRO BONAZZOLA
>
> ASSOCIATE MANAGER, SOFTWARE ENGINEERING, EMEA ENG VIRTUALIZATION R&D
>
> Red Hat EMEA <https://www.redhat.com/>
> <https://red.ht/sig>
> TRIED. TESTED. TRUSTED. <https://redhat.com/trusted>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.