diff options
| author | David Malcolm <dmalcolm@redhat.com> | 2012-06-25 15:52:24 -0400 |
|---|---|---|
| committer | David Malcolm <dmalcolm@redhat.com> | 2012-06-25 15:52:24 -0400 |
| commit | 3ea24a4b92242d60759b0e211058a9c4e767cb6d (patch) | |
| tree | 68a5befbf162af8accd4bc861556f8842d409d57 /Python | |
| parent | 0f1e1002286b84ac6cf6a1c02307b71499421d7d (diff) | |
| download | cpython-3ea24a4b92242d60759b0e211058a9c4e767cb6d.tar.gz | |
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.
Diffstat (limited to 'Python')
0 files changed, 0 insertions, 0 deletions
