From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on ip-172-31-65-14.ec2.internal X-Spam-Level: X-Spam-Status: No, score=-1.9 required=3.0 tests=BAYES_00,T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 Path: eternal-september.org!reader01.eternal-september.org!aioe.org!16NWJ6+ffT/gI+JIGgfmBw.user.46.165.242.75.POSTED!not-for-mail From: Simon Wright Newsgroups: comp.lang.ada Subject: Re: How to build Python3 support into GNATCOLL with alire Date: Mon, 21 Nov 2022 22:39:47 +0000 Organization: Aioe.org NNTP Server Message-ID: References: <3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com> <13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="27365"; posting-host="16NWJ6+ffT/gI+JIGgfmBw.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.1 (darwin) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:8pLMdwhHmW61UrtPC2qWDa+fipM= Xref: reader01.eternal-september.org comp.lang.ada:64656 List-Id: Fabien Chouteau 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.