Re: [gtk-osx-users] Can not compile python-launcher.c





On Apr 26, 2020, at 10:30 AM, Timo <timomlists gmail com> wrote:

On 26/04/2020 at 17:20, John Ralls wrote:
It seems that python 3.8 requires an additional argument to python3-config, --embed.
From https://docs.python.org/3/whatsnew/3.8.html,
"To embed Python into an application, a new --embed option must be passed to python3-config --libs --embed 
to get -lpython3.8 (link the application to libpython). To support both 3.8 and older, try python3-config 
--libs --embed first and fallback to python3-config --libs (without --embed) if the previous command 
fails."
That did it, thanks!


Gtk-osx doesn't support Python2.
I thought so, only tried it because in the gtk-mac-bundler instructions python-config is used instead of 
python3-config.

That's because the python3 install scripts used to create a python-config symlink to python3-config. That was 
removed in python3.6 though it might come back in 3.9 since py2 had its final release on Friday.

Regards,
John Ralls



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]