Thanks John. Then I'm thinking to pack a no-gui gnucash (a.k.a. python
bindings and libgnucash) on conda-forge. This could drop massive
dependencies and work on multi platforms. I have successfully build one,
but it fails to import due to macOS's rpath mechanism and I'm not quit
familiar with it. I wonder if developers would like to maintain a conda
package for python?

Regards,
monson

john <jra...@ceridwen.us> 于2023年4月22日周六 00:20写道:

>
>
> On Apr 21, 2023, at 3:17 AM, monson <holymon...@gmail.com> wrote:
>
> Hi there,
>
> The pure python client `piecash` seems obsoleted and no longer worked
> with latest sqlalchemy and gnucash, so I'm trying to switch to original
> python bindings. Since they aren't shipped in the pre-built bundle, I
> tried to build those bindings but it seems have to build the whole
> gnucash and doesn't work well.
> On Linux (e.g. archlinux) those python bindings are shipped with
> the gnucash package. May I ask if we can do the same on macOS? Thanks.
>
>
> Unfortunately there's no good way to do that. The Python bindings need to
> be linked with libpython3 and Apple only provides one in recent versions of
> Xcode--Xcode itself, mind, not the SDK--with a decidedly quirky framework
> layout. Supporting that across 5 versions of macOS isn't practical. Worse,
> since it's not in the SDK it can't be linked from another bundle: Apple's
> notarization doesn't allow linking anything outside the bundle that's not
> in either /usr/lib or /System/Library/Frameworks. With that latter rule the
> only way to include the python bindings in GnuCash app is to include a full
> build of Python in the bundle and you'd have to use the Python executable
> in the bundle with the scripts. That's a lot of extra baggage for the few
> users who want it.
>
> If building GnuCash with gtk-osx is too hard consider MacPorts instead.
> Homebrew just "bottles" GnuCash.app so it's not an alternative.
>
> Regards,
> John Ralls
>
>
>
_______________________________________________
gnucash-user mailing list
gnucash-user@gnucash.org
To update your subscription preferences or to unsubscribe:
https://lists.gnucash.org/mailman/listinfo/gnucash-user
-----
Please remember to CC this list on all your replies.
You can do this by using Reply-To-List or Reply-All.

Reply via email to