Support multiple python versions in brp-python-bytecompile (RhBug:53117)
authorPanu Matilainen <pmatilai@redhat.com>
Tue, 27 Oct 2009 14:07:43 +0000 (16:07 +0200)
committerPanu Matilainen <pmatilai@redhat.com>
Tue, 27 Oct 2009 14:07:43 +0000 (16:07 +0200)
commit5463570061a7ca9ed947885b516c2551778b636f
treed517344674c3ba4083e6b882e9cad5ca4dc42bc1
parent714ebe92a1052e67967221e73ac8b788140e684c
Support multiple python versions in brp-python-bytecompile (RhBug:53117)
- For *.py files in python library path, use matching python interpreter
  version for compiling, this is especially needed for Python 3 which
  is very different from Python 2 code. And even if the code compiled
  with a wrong version, it would be recompiled at run-time when invoked
  with the intended python version, causing verification errors etc.
- For *.py files outside the library path, use "system python" which
  might not be always correct but we dont really know any better.
- Patch from David Malcolm
scripts/brp-python-bytecompile