[GNC-dev] Windows Build VM

john jralls at ceridwen.us
Mon Nov 6 13:31:11 EST 2023



> On Nov 6, 2023, at 05:11, Manfred Usselmann <manfred at usselmann.de> wrote:
> 
> Hi,
> 
> Am 2023-10-01 17:47, schrieb john:
>>> On Oct 1, 2023, at 06:00, Derek Atkins <derek at ihtfp.com> wrote:
>>> On Sun, October 1, 2023 12:00 am, flywire wrote:
>>>> https://lists.gnucash.org/pipermail/gnucash-user/2023-April/106619.html
>>>> John wrote:
>>>>> we don't have a Windows CI action, the nightly builds are done with the
>>>>> https://github.com/gnucash/GnuCash-on-windows powershell scripts on a
>>>>> Windows VM in Derek's basement.
> 
> The nightly builds are those on https://code.gnucash.org/builds/win32/stable/, right?
> 
> Would it be possible to additonally provide a version there which includes the Python bindings?

No, there's no way to make that work with an installed package.

> 
> Since there already exists a working build environment, I would hope that it's not too much work?

That depends on what you want to use for your Python. If you can use the MSYS2 environment from Powershell (some MSYS2 things work directly in Powershell, others need a Bash shell) then you can simply add -DWITH_PYTHON=ON to the CMakeArgs in jhbuild and build it. Don't run the installer, just add c:\gcdev64\gnucash\stable\inst\lib\python3.11\site-packages to PYTHONPATH and run your scripts.

If the MSYS2 python doesn't work for you then you'll need to fiddle with paths and such so that CMake finds the python libraries that you want it to. You must make sure that everything Python is linked to the same Python installation.

Regards,
John Ralls



More information about the gnucash-devel mailing list