Changes

Jump to: navigation, search

Building Gramps AIO cx freeze-based

236 bytes added, 18:09, 20 February 2018
Get the tools
=== Get the tools ===
{{man note|Note|Josip uses a cx_Freeze with some changes he made to make the process a bit easier. At this time I don't attempted to make similar changes, but we will have access to that version build the utility. }}Download https://gramps-project.org/wiki/images/a/a3/Mingw-w64-python-cx_Freeze.zip to a convenient location with your browser. I do my builds in the <code>c:\msys64\home\user\builds</code> directory, so we will make do with a new sub-directory for cx_Freeze there.I use 7-zip to extract to the standard one<code>c:\msys64\home\user\builds\cx_Freeze</code> directory. }} 
{{man note|Note|Use <code>MSYS2 MSYS</code> shell.}}
MINGW_INSTALLS=mingw32 makepkg-mingw -sLf
pacman -U mingw-w64-i686-python3-cx_Freeze-5.0.2-1-any.pkg.tar.xz
pacman -S mingw-w64-i686-python3-The patches included in the zip should fix up cx_Freeze However, this version of cx_Freeze has an issue that for a bug where it wants tries to include load an sqlite3.dll that we don't have (or needfile, because it is related and to MICROSOFT tools). So I had to edit <code>/mingw32/lib/python3.6/site-packages/cx_Freeze/hooks.py</code> at line 921 <code>def load_sqlite3</code>I just added a <code>return</code> in front of add properly optimized base files for Python startup (In the <code>if sys.platform... </code> so that original version the sqlite DLL is not added'optimize' functionality doesn't work).
pacman -S mingw-w64-i686-nsis
266
edits

Navigation menu