A better approach to the problem that #99 sought to address - consistent pyc compilation.
Abstracts the compileall commands into a convenient helper that does "the right thing" for the version of python being built.
Moves pyc compliation out of individual tasks and makes it part of the pythonlib task, immediately prior to assembly.
Elides filenames making the result build directory agnostic, and providing cleaner tracebacks inside Ren'Py.
Paths are relative to config.renpy_base, which matches what we already do for pyc files inside renpy/.
A better approach to the problem that #99 sought to address - consistent pyc compilation.
compileall
commands into a convenient helper that does "the right thing" for the version of python being built.config.renpy_base
, which matches what we already do for pyc files insiderenpy/
.Tested with
platform=linux arch=x86_64
, resulting in correct output forlib/python2.7
andlib/python3.9
.P.S. There is a little more detail in the individual commit messages.