Files
cpython/Lib
David Malcolm 555bfc7ed0 Issue #14443: ensure that brp-python-bytecompile is invoked with the correct
python executable

The __os_install_macro defines some post-processing activities during an rpm
build; one of the scripts it calls is brp-python-bytecompile, which can take
an argument: the python executable with which to byte-compile .py files in the
package payload.

In some older versions of rpm (e.g. in RHEL 6), this invocation doesn't pass
in an argument, and brp-python-bytecompile defaults to using /usr/bin/python,
which can lead to the .py files being byte-compiled for the wrong version of
python.  This has been fixed in later versions of rpm by passing in
%{__python} as an argument to brp-python-bytecompile.

Workaround this by detecting if __os_install_post has a 0-argument invocation
of brp-python-bytecompile, and if so generating an equivalent macro that has
the argument, and explicitly provide the new definition within the specfile.
2012-06-25 15:52:24 -04:00
..
2012-06-16 22:50:54 +02:00
2012-06-14 15:37:53 +02:00
2012-05-21 17:53:42 -06:00
2011-10-19 10:58:56 +03:00
2012-02-21 13:59:40 +02:00
2012-03-05 16:24:07 +01:00
2011-10-28 14:52:29 +02:00
2011-07-15 21:10:13 -05:00
2011-10-19 11:06:26 +03:00
2011-12-10 13:02:17 +01:00
2011-11-08 18:39:15 +01:00
2011-11-04 08:29:17 +01:00
2012-05-07 22:24:05 -04:00
2011-10-28 14:52:29 +02:00
2011-12-13 13:22:42 -05:00
2012-06-02 19:40:20 +02:00
2012-04-29 13:37:13 +03:00
2011-08-16 19:03:41 +03:00
2011-10-18 13:26:49 +03:00
2011-12-02 21:25:39 +02:00