We should be able to submit this as a package to MSYS2: https://github.com/msys2/msys2/wiki/Creating-Packages.
Python build changes mostly completed in r19684. We can now install xpra locally from an MSYS2 shell with:
rm -fr dist/* python ./setup.py clean python ./setup.py install --prefix=./dist --share=share/xpra --with-scripts rsync -rplogt dist/* ${MINGW_PREFIX}/
Still TODO:
PyOpenGL
+ PyOpenGL_accelerate
, cryptography
@smo: can you help with any of this?
Update from the transition to python 3.7 (#1878) done by msys2:
OpenGL_accelerate
needs patching to build: pyopengl: Python 3.7 Build failure
websockify
: we need our patch set - really wished I had merged this upstream now..
libyuv
(as per ticket:678#comment:40 - much easier now that libyuv builds the DLL by default and without errors) - every other installation step is now fully automated, see wiki/Building/MSWindows
python-zeroconf (original feature ticket: #1644) dropped support for python2 in version 0.20 (see python2-zeroconf: updated to 0.20.0, but 0.20.0 dropped python2 support), but something is not right and using easy_install will pickup the latest (broken) version, so we have to be specific about it: r20193. No such problems with python3.
Work in progress lives here: github thesmo MINGW-packages
Here's a slightly more tricky one: pygtkglext as per ticket:678#comment:27 (2 patches and a workaround for the install step), it was MIA from my 64-bit build VM, fortunately the new "native" backend was working OK so I didn't notice!
Minor update: rencode 1.0.6, see r20754
@smo: see ticket:2004#comment:3 for libyuv.
Still waiting on this merge. https://github.com/Alexpux/MINGW-packages/pull/4595
Can you update what has been merged and replace easy_install
with pacman
in the setup and update scripts?
Found that paramiko, comtypes, netifaces and rencode are available in MSYS2 now, so r21147 switches to that.
Here is a link to all the closed merge requests.
https://github.com/Alexpux/MINGW-packages/pulls?q=is%3Apr+author%3Athesmo+is%3Aclosed
nvidia-ml-py seems to be the only open one still
Useful link: thesmo pull requests
r21483 switches to MSYS2 packages for: websocket-client, setproctitle, pyu2f, ldap, ldap3, bcrypt and pynacl. Also zeroconf, but only for python3 (see below, comment:5).
Important libraries left to package / fix:
With the two build files above, I can generate a working installation of xpra.
Still TODO:
/etc
and /share/xpra
directories, without doing a fake build (even if it is a minimal one, doing the cx_Freeze step is expensive and unnecessary - also requires cx_Freeze which we don't really need for anything)
mingw-w64-x86_64-xpra-common
are not architecture dependent at all, we want a mingw-w64-xpra-common
instead
Sent pull request for https://github.com/Alexpux/MINGW-packages/pull/4937.
The pull request has been merged, I have made a new one for python-nvidia-ml - the one above was broken for python3.
Since 2.5 will drop websockify (#2121) and make "native" the default opengl backend (r21382), there aren't many important packages left to fix / add from comment:15:
pull request for python-zeroconf: https://github.com/Alexpux/MINGW-packages/pull/4941 with one build file for each python version.
As of r21532 + r21533 + r21534, minimal builds don't include anything at all, not even any python bits. Adding --with-data
we get just the extra bits we need for packaging "xpra-common".
Pull request for libyuv: https://github.com/Alexpux/MINGW-packages/pull/4948.
Pull request for fixing pyopengl: https://github.com/Alexpux/MINGW-packages/pull/4949
Merged upstream:
pyopengl-accelerate pull request (added to pyopengl): https://github.com/Alexpux/MINGW-packages/pull/4954
Merged upstream:
Updated setup and removed python update script: r21590.
Only things left for this ticket:
The install changes caused a regression: ticket:2144#comment:1.
For python-gssapi and winkerberos (#1691), moving to a new ticket: #2170
libyuv has been merged upstream and we now use it: r21892
Pull request for xpra package: https://github.com/msys2/MINGW-packages/pull/5037
And finally, xpra is in MSYS2: commit d6fe4115fbc605a9684991ffef1a4085894320f3.
Update to 2.5 release: https://github.com/msys2/MINGW-packages/pull/5095.
this ticket has been moved to: https://github.com/Xpra-org/xpra/issues/1883