Building Windows Python packages/executables under Wine

Erich E. Hoover erich.e.hoover at gmail.com
Fri Oct 25 11:29:57 CDT 2019


All,

As promised at WineConf (though a little late), here's my utility for
building Windows Python packages under Wine:
https://github.com/sweptlaser/build-python-wine
This took a little longer than I expected because I wanted to make
sure that py2exe was working properly for some example projects (in
addition to building wheels).  So, with this project I have now tested
building and running both wheels (bdist_wheel) and executables
(py2exe) for Python 3.7 under Wine (for both 32-bit and 64-bit
Windows).

Please note that there are two issues that this script currently works around:
1) No chcp.exe ( https://bugs.winehq.org/show_bug.cgi?id=47960 )
2) The installer hangs creating a restore point ( possibly
https://bugs.winehq.org/show_bug.cgi?id=46559 )

I've prepared a stub patch for the first one and the second _appears_
to be that wmic.exe does not yet support the system restore command.
I'll upstream both of these once I have the restore point issue
figured out (hopefully this next week).

Hopefully others find this useful, questions and comments are always welcome.

Best,
Erich



More information about the wine-devel mailing list