Build Procedure
$ python setup.py clean $ python setup.py build $ python setup.py install --prefix /usr --root /tmp/test --skip-build $ ls /tmp/test/usr/lib64/python2.6/site-packages/xpra/build_info.py ls: cannot access /tmp/test/usr/lib64/python2.6/site-packages/xpra/build_info.py: No such file or directory
$ python setup.py clean $ python setup.py build $ python setup.py install --prefix /usr --root /tmp/test $ ls /tmp/test/usr/lib64/python2.6/site-packages/xpra/build_info.py /tmp/test/usr/lib64/python2.6/site-packages/xpra/build_info.py
difference in file listings
$ diff /tmp/xpra-skip-build.txt /tmp/xpra.txt 15a16,17 > /tmp/test/usr/lib64/python2.6/site-packages/xpra/build_info.py > /tmp/test/usr/lib64/python2.6/site-packages/xpra/build_info.pyc
Maybe we can re-use the code from ticket:172#comment:37 for this.
On lines 344 - 347 add_modules is being called
add_modules("xpra", "xpra.platform", "xpra.codecs", "xpra.codecs.xor")
add_module adds any *.py
file that is in the xpra module directory. This includes things like xpra.src_info
and xpra.build_info
.
xpra/src_info.py
and xpra/build_info.py
don't get generated until lines 791-803. Therefore, when add_module(xpra)
get called, the src_info.py
and build_info.py
don't exist, thus they don't get included.
I see two potential fixes:
build_info.py
and src_info.py
before calling add_module(xpra)
build_info.py
and src_info.py
files, perhaps all values in the dummy file should be 'unknown'
I think solution 2 makes more sense, because the xpra code base tries to load values from these files and if they don't exist, errors get thrown.
r6919 works for me, can you confirm?
(I should backport this to v0.13.x)
Not heard back, closing. Shout if I'm wrong.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/603