From: Simon Wright <simon@pushface.org>
Subject: Re: How to build Python3 support into GNATCOLL with alire
Date: Mon, 21 Nov 2022 22:39:47 +0000 [thread overview]
Message-ID: <lyr0xwvsng.fsf@pushface.org> (raw)
In-Reply-To: cf917e0c-37f5-4272-81ae-3a9ea4874f31n@googlegroups.com
Fabien Chouteau <fabien.chouteau@gmail.com> writes:
> We are considering adding the feature to Alire directly. In particular
> an easy way to get relevant info from pkg-config.
In the case of gnatcoll_python3, which already has
GNATCOLL_PYTHON_CFLAGS and GNATCOLL_PYTHON_LIBS environment vars, what
we need *for Homebrew* is to set the first to
pkg-config --cflags-only-I python3-embed
and the second to
pkg-config --libs-only-L python3-embed
Note the python3-embed! python3 on its own gives you no libs on
macOS. As far as I can tell this has been in Python since 3.8.
I did an experiment adding Homebrew to a new
gnatcoll_python3-23.0.1.toml and revised libpython3dev-external.toml,
and it successfully build a simple demo with the above environment
variables set externally.
prev parent reply other threads:[~2022-11-21 22:39 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-11-19 6:05 How to build Python3 support into GNATCOLL with alire Roger Mc
2022-11-19 22:11 ` Simon Wright
2022-11-19 22:28 ` Roger Mc
2022-11-20 21:25 ` Simon Wright
2022-11-20 22:52 ` Roger Mc
2022-11-20 23:06 ` Roger Mc
2022-11-21 7:45 ` Emmanuel Briot
2022-11-21 8:55 ` Simon Wright
2022-11-21 9:04 ` Fabien Chouteau
2022-11-21 22:39 ` Simon Wright [this message]
replies disabled
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox