• David Malcolm's avatar
    Issue #14443: ensure that brp-python-bytecompile is invoked with the correct · 555bfc7e
    David Malcolm yazdı
    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.
    555bfc7e
Adı
Son kayıt (commit)
Son güncelleme
..
command Loading commit data...
tests Loading commit data...
README Loading commit data...
__init__.py Loading commit data...
archive_util.py Loading commit data...
bcppcompiler.py Loading commit data...
ccompiler.py Loading commit data...
cmd.py Loading commit data...
config.py Loading commit data...
core.py Loading commit data...
cygwinccompiler.py Loading commit data...
debug.py Loading commit data...
dep_util.py Loading commit data...
dir_util.py Loading commit data...
dist.py Loading commit data...
emxccompiler.py Loading commit data...
errors.py Loading commit data...
extension.py Loading commit data...
fancy_getopt.py Loading commit data...
file_util.py Loading commit data...
filelist.py Loading commit data...
log.py Loading commit data...
msvc9compiler.py Loading commit data...
msvccompiler.py Loading commit data...
spawn.py Loading commit data...
sysconfig.py Loading commit data...
text_file.py Loading commit data...
unixccompiler.py Loading commit data...
util.py Loading commit data...
version.py Loading commit data...
versionpredicate.py Loading commit data...