Re: Supporting multiple python runtimes with automake

2018-01-30 Thread Yuval Turgeman
Because when I want to package an rpm, I have a single %build and %install in my spec, so my second call to configure will override the first, and then i will need to run make install. So the process would be result in something like (from %build) configure PYTHON=/usr/bin/python2 make configure

Re: Supporting multiple python runtimes with automake

2018-01-30 Thread Mathieu Lirzin
Hello, Yuval Turgeman writes: > On Tue, Jan 30, 2018 at 2:22 PM, Sandro Bonazzola > wrote: > >> 2018-01-30 11:26 GMT+01:00 Yuval Turgeman : >> >>> 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 >>

Re: Supporting multiple python runtimes with automake

2018-01-30 Thread Sandro Bonazzola
2018-01-30 11:26 GMT+01:00 Yuval Turgeman : > 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

Re: Supporting multiple python runtimes with automake

2018-01-30 Thread Yuval Turgeman
On Tue, Jan 30, 2018 at 2:22 PM, Sandro Bonazzola wrote: > > > 2018-01-30 11:26 GMT+01:00 Yuval Turgeman : > >> 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

Supporting multiple python runtimes with automake

2018-01-30 Thread Yuval Turgeman
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