Rocksolid Light

Welcome to RetroBBS

mail  files  register  newsreader  groups  login

Message-ID:  

There are two ways to write error-free programs; only the third one works.


devel / comp.lang.ada / How to build Python3 support into GNATCOLL with alire

SubjectAuthor
* How to build Python3 support into GNATCOLL with alireRoger Mc
`* Re: How to build Python3 support into GNATCOLL with alireSimon Wright
 `* Re: How to build Python3 support into GNATCOLL with alireRoger Mc
  `* Re: How to build Python3 support into GNATCOLL with alireSimon Wright
   +- Re: How to build Python3 support into GNATCOLL with alireRoger Mc
   +- Re: How to build Python3 support into GNATCOLL with alireRoger Mc
   `* Re: How to build Python3 support into GNATCOLL with alireEmmanuel Briot
    +- Re: How to build Python3 support into GNATCOLL with alireSimon Wright
    `* Re: How to build Python3 support into GNATCOLL with alireFabien Chouteau
     `- Re: How to build Python3 support into GNATCOLL with alireSimon Wright

1
How to build Python3 support into GNATCOLL with alire

<a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9035&group=comp.lang.ada#9035

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:b42:0:b0:6fb:dbda:2e71 with SMTP id 63-20020a370b42000000b006fbdbda2e71mr3454998qkl.139.1668837918020;
Fri, 18 Nov 2022 22:05:18 -0800 (PST)
X-Received: by 2002:a37:de15:0:b0:6ed:ccd0:30af with SMTP id
h21-20020a37de15000000b006edccd030afmr8575304qkj.240.1668837917781; Fri, 18
Nov 2022 22:05:17 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Fri, 18 Nov 2022 22:05:17 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=219.90.169.193; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 219.90.169.193
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
Subject: How to build Python3 support into GNATCOLL with alire
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Sat, 19 Nov 2022 06:05:18 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1462
 by: Roger Mc - Sat, 19 Nov 2022 06:05 UTC

Using Alire, I'm attempting to follow the Scripts API instructions of the `GNATColl 22.0w documentation` Section 3.1.2, `The Python Language` which states that `Python support is optional in GNATColl`.
I can't figure out how to provide `GNATColl` with the optional Python support. Hence my instruction `with GNATCOLL.Scripts.Python;` fails.
No problem with `with GNATCOLL.Scripts;`
Please advise on how to provide `GNATColl` with the optional Python support.

Re: How to build Python3 support into GNATCOLL with alire

<ly8rk6y4qz.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9038&group=comp.lang.ada#9038

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!16NWJ6+ffT/gI+JIGgfmBw.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: How to build Python3 support into GNATCOLL with alire
Date: Sat, 19 Nov 2022 22:11:00 +0000
Organization: Aioe.org NNTP Server
Message-ID: <ly8rk6y4qz.fsf@pushface.org>
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="33771"; 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)
Cancel-Lock: sha1:pJi4ytycncuW/s7DFSijTso5Z14=
X-Notice: Filtered by postfilter v. 0.9.2
 by: Simon Wright - Sat, 19 Nov 2022 22:11 UTC

Roger Mc <rogermcm2@gmail.com> writes:

> Using Alire, I'm attempting to follow the Scripts API instructions of
> the `GNATColl 22.0w documentation` Section 3.1.2, `The Python
> Language` which states that `Python support is optional in GNATColl`.
> I can't figure out how to provide `GNATColl` with the optional Python
> support. Hence my instruction `with GNATCOLL.Scripts.Python;` fails.
> No problem with `with GNATCOLL.Scripts;`
> Please advise on how to provide `GNATColl` with the optional Python
> support.

Unfortunately the Python3 binding in Alire doesn't work on macOS (ISTR
you use a Mac? always helpful to say what machine you're using!)

Should work on Debian/Ubuntu/Windows, not that that helps you a lot.

Re: How to build Python3 support into GNATCOLL with alire

<3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9039&group=comp.lang.ada#9039

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:6896:0:b0:3a5:6aa1:7cd6 with SMTP id m22-20020ac86896000000b003a56aa17cd6mr12281878qtq.146.1668896901444;
Sat, 19 Nov 2022 14:28:21 -0800 (PST)
X-Received: by 2002:a05:622a:17c6:b0:3a4:ffad:4250 with SMTP id
u6-20020a05622a17c600b003a4ffad4250mr12014743qtk.638.1668896901247; Sat, 19
Nov 2022 14:28:21 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sat, 19 Nov 2022 14:28:20 -0800 (PST)
In-Reply-To: <ly8rk6y4qz.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=219.90.169.193; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 219.90.169.193
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com> <ly8rk6y4qz.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
Subject: Re: How to build Python3 support into GNATCOLL with alire
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Sat, 19 Nov 2022 22:28:21 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1519
 by: Roger Mc - Sat, 19 Nov 2022 22:28 UTC

Mac OSX 13.0.1 (22A400)
XCode 14.1
gnat-x86_64-darwin-12.1.0-2

Thanks Simon,
I've just posted a query with gnatcoll_core as
alr get gnatcoll_python3 returns an error message.
I think the gnatcoll documentation is now out of date with respect to changes made by alire.
I've just updated my Mac to Ventura and consequently am fighting battles on many fronts.

Re: How to build Python3 support into GNATCOLL with alire

<lyzgclwc6t.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9043&group=comp.lang.ada#9043

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!rocksolid2!news.neodome.net!news.mixmin.net!aioe.org!16NWJ6+ffT/gI+JIGgfmBw.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: How to build Python3 support into GNATCOLL with alire
Date: Sun, 20 Nov 2022 21:25:30 +0000
Organization: Aioe.org NNTP Server
Message-ID: <lyzgclwc6t.fsf@pushface.org>
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org>
<3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="62475"; 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:4oTuFduf6RKZvfEJHbCsZWW/e4g=
 by: Simon Wright - Sun, 20 Nov 2022 21:25 UTC

Roger Mc <rogermcm2@gmail.com> writes:

> Mac OSX 13.0.1 (22A400)
> XCode 14.1
> gnat-x86_64-darwin-12.1.0-2
>
> Thanks Simon,
> I've just posted a query with gnatcoll_core as
> alr get gnatcoll_python3 returns an error message.
> I think the gnatcoll documentation is now out of date with respect to
> changes made by alire.

The trouble is that Alire hasn't been taught how to deal with
gnatcoll_python3.

The community index has, in gnatcoll_python3-23.0.0.toml,

+++++++++++++++
[environment.'case(distribution)']
"debian|ubuntu" = { C_INCLUDE_PATH.append = "${DISTRIB_ROOT}/usr/include/python3.7/:${DISTRIB_ROOT}/usr/include/python3.8/"}
msys2 = { C_INCLUDE_PATH.append = "${DISTRIB_ROOT}/mingw64/include/python3.10/" }

[available.'case(distribution)']
'debian|ubuntu|msys2' = true
'...' = false

[[depends-on]]
gnatcoll = "~23.0.0"
libpython3dev = "^3.10"
+++++++++++++++

and this has no support for macOS; specifically, the "'...' = false"
under "[available.'case(distribution)']" says it's only available on the
distributions named above.

In libpython3dev-external.toml, there is

+++++++++++++++
[[external]]
kind = "system"
[external.origin."case(distribution)"]
"debian|ubuntu" = ["libpython3-dev"]
msys2 = ["mingw-w64-x86_64-python"]
+++++++++++++++

which says e.g. that, if you're on debian, Alire is to use its package
manager (apt, I think) to check/fetch the package libpython3-dev.

Alire 1.3 will support Homebrew as the package manager for macOS, but
someone has to work out how to upgrade the above two items to use it
(and how to approach include, library paths; the ideal way would
probably be to use pkg-config to determine them, but the simplest way of
doing that would mean running a script from within gprbuild - not going
to happen.

Bear in mind that although Xcode 14 has /usr/bin/python3 it doesn't
support the -dev aspects, i.e. no includes and no libs, and so no
gnatcoll_python3.

> I've just updated my Mac to Ventura and consequently am fighting
> battles on many fronts.

There's an issue with GCC 12.1.0 & Ventura (macOS 13): that release of
GCC doesn't believe in macOS versions greater than 12 :-(

I'm pretty sure that this only affects C (and C++?) compilation.

You could try
export MACOSX_DEPLOYMENT_TARGET=12
- I haven't tried this yet.

The 12.2.0 versions I've just posted don't have _this_ problem!

Re: How to build Python3 support into GNATCOLL with alire

<2ec8708e-cd34-460e-9e30-aa0ea1ce2badn@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9044&group=comp.lang.ada#9044

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ac8:488a:0:b0:3a5:8508:16d8 with SMTP id i10-20020ac8488a000000b003a5850816d8mr15477560qtq.415.1668984745115;
Sun, 20 Nov 2022 14:52:25 -0800 (PST)
X-Received: by 2002:ac8:60d:0:b0:39c:e8cc:ff69 with SMTP id
d13-20020ac8060d000000b0039ce8ccff69mr15637841qth.245.1668984744926; Sun, 20
Nov 2022 14:52:24 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 20 Nov 2022 14:52:24 -0800 (PST)
In-Reply-To: <lyzgclwc6t.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=219.90.169.193; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 219.90.169.193
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org> <3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
<lyzgclwc6t.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <2ec8708e-cd34-460e-9e30-aa0ea1ce2badn@googlegroups.com>
Subject: Re: How to build Python3 support into GNATCOLL with alire
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Sun, 20 Nov 2022 22:52:25 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1253
 by: Roger Mc - Sun, 20 Nov 2022 22:52 UTC

Thanks Simon,

Re: How to build Python3 support into GNATCOLL with alire

<dc3ecd06-7dbb-481b-b3a4-89d084f99de2n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9045&group=comp.lang.ada#9045

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a37:46cd:0:b0:6fb:7c45:bd5 with SMTP id t196-20020a3746cd000000b006fb7c450bd5mr14376472qka.304.1668985593818;
Sun, 20 Nov 2022 15:06:33 -0800 (PST)
X-Received: by 2002:ac8:6a11:0:b0:3a5:933:e8a9 with SMTP id
t17-20020ac86a11000000b003a50933e8a9mr15584008qtr.676.1668985593683; Sun, 20
Nov 2022 15:06:33 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer02.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 20 Nov 2022 15:06:33 -0800 (PST)
In-Reply-To: <lyzgclwc6t.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=219.90.169.193; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo
NNTP-Posting-Host: 219.90.169.193
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org> <3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
<lyzgclwc6t.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <dc3ecd06-7dbb-481b-b3a4-89d084f99de2n@googlegroups.com>
Subject: Re: How to build Python3 support into GNATCOLL with alire
From: rogermcm2@gmail.com (Roger Mc)
Injection-Date: Sun, 20 Nov 2022 23:06:33 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1898
 by: Roger Mc - Sun, 20 Nov 2022 23:06 UTC

Thanks Simon,
I've pretty much given up on this until alire has a gnatcoll_python3 release for Mac.
I'm using gnat-x86_64-darwin-12.2.0-1 so don't have the "GCC doesn't believe in macOS versions greater than 12" problem and is also needed for compilation and building to work.
I've also given up on trying to get GNATstudio to work.
I think I've learnt enough now to know when to give up.
GPS 2019 is working fine as a GUI except for the menus which can be negotiated using the keyboard arrow keys.
I notice the X's and UX's in alire searches and have come across the alire list of crate statuses which is quite informative but not very easy to find.

Re: How to build Python3 support into GNATCOLL with alire

<13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9046&group=comp.lang.ada#9046

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:ae9:e919:0:b0:6e0:90df:228f with SMTP id x25-20020ae9e919000000b006e090df228fmr2282787qkf.756.1669016706953;
Sun, 20 Nov 2022 23:45:06 -0800 (PST)
X-Received: by 2002:a05:620a:4884:b0:6fb:c38e:27bf with SMTP id
ea4-20020a05620a488400b006fbc38e27bfmr14950810qkb.351.1669016706752; Sun, 20
Nov 2022 23:45:06 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Sun, 20 Nov 2022 23:45:06 -0800 (PST)
In-Reply-To: <lyzgclwc6t.fsf@pushface.org>
Injection-Info: google-groups.googlegroups.com; posting-host=2a01:e0a:810:89e0:58b4:5438:3a7b:8a83;
posting-account=6yLzewoAAABoisbSsCJH1SPMc9UrfXBH
NNTP-Posting-Host: 2a01:e0a:810:89e0:58b4:5438:3a7b:8a83
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org> <3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
<lyzgclwc6t.fsf@pushface.org>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com>
Subject: Re: How to build Python3 support into GNATCOLL with alire
From: briot.emmanuel@gmail.com (Emmanuel Briot)
Injection-Date: Mon, 21 Nov 2022 07:45:06 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2141
 by: Emmanuel Briot - Mon, 21 Nov 2022 07:45 UTC

Hi Simon,

I have not used alire myself, but I noticed the following in your message:

> Alire 1.3 will support Homebrew as the package manager for macOS, but
> someone has to work out how to upgrade the above two items to use it
> (and how to approach include, library paths; the ideal way would
> probably be to use pkg-config to determine them, but the simplest way of
> doing that would mean running a script from within gprbuild - not going
> to happen.

Although running external scripts from gprbuild is indeed unlikely, it is definitely in the realms of gprconfig (which is run first to generate the .cgpr config file).
For this one would need to provide some .xml file that explains what command to run, and what to generate in the .cgpr file (likely adding some `-I` compiler
switches for C files).

Emmanuel

Re: How to build Python3 support into GNATCOLL with alire

<lyv8n8wusw.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9048&group=comp.lang.ada#9048

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!16NWJ6+ffT/gI+JIGgfmBw.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (Simon Wright)
Newsgroups: comp.lang.ada
Subject: Re: How to build Python3 support into GNATCOLL with alire
Date: Mon, 21 Nov 2022 08:55:43 +0000
Organization: Aioe.org NNTP Server
Message-ID: <lyv8n8wusw.fsf@pushface.org>
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org>
<3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
<lyzgclwc6t.fsf@pushface.org>
<13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com>
Mime-Version: 1.0
Content-Type: text/plain
Injection-Info: gioia.aioe.org; logging-data="32644"; 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:ZbLvdKyKQmdwZfeW0bMLc4/9dvA=
 by: Simon Wright - Mon, 21 Nov 2022 08:55 UTC

Emmanuel Briot <briot.emmanuel@gmail.com> writes:

> I have not used alire myself, but I noticed the following in your message:
>
>> Alire 1.3 will support Homebrew as the package manager for macOS, but
>> someone has to work out how to upgrade the above two items to use it
>> (and how to approach include, library paths; the ideal way would
>> probably be to use pkg-config to determine them, but the simplest way
>> of doing that would mean running a script from within gprbuild - not
>> going to happen.
>
> Although running external scripts from gprbuild is indeed unlikely, it
> is definitely in the realms of gprconfig (which is run first to
> generate the .cgpr config file). For this one would need to provide
> some .xml file that explains what command to run, and what to generate
> in the .cgpr file (likely adding some `-I` compiler switches for C
> files).

Brilliant idea! Thanks, Emmanuel!

Re: How to build Python3 support into GNATCOLL with alire

<cf917e0c-37f5-4272-81ae-3a9ea4874f31n@googlegroups.com>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9049&group=comp.lang.ada#9049

  copy link   Newsgroups: comp.lang.ada
X-Received: by 2002:a05:620a:260d:b0:6fb:a9af:2238 with SMTP id z13-20020a05620a260d00b006fba9af2238mr15745744qko.457.1669021457762;
Mon, 21 Nov 2022 01:04:17 -0800 (PST)
X-Received: by 2002:ac8:60d:0:b0:39c:e8cc:ff69 with SMTP id
d13-20020ac8060d000000b0039ce8ccff69mr16824516qth.245.1669021457567; Mon, 21
Nov 2022 01:04:17 -0800 (PST)
Path: i2pn2.org!i2pn.org!usenet.blueworldhosting.com!feed1.usenet.blueworldhosting.com!peer01.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.ada
Date: Mon, 21 Nov 2022 01:04:17 -0800 (PST)
In-Reply-To: <13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=90.49.234.87; posting-account=L3mulQoAAADsXVjCD5rM6Ap3Xy0U3ckB
NNTP-Posting-Host: 90.49.234.87
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org> <3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
<lyzgclwc6t.fsf@pushface.org> <13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <cf917e0c-37f5-4272-81ae-3a9ea4874f31n@googlegroups.com>
Subject: Re: How to build Python3 support into GNATCOLL with alire
From: fabien.chouteau@gmail.com (Fabien Chouteau)
Injection-Date: Mon, 21 Nov 2022 09:04:17 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 1898
 by: Fabien Chouteau - Mon, 21 Nov 2022 09:04 UTC

On Monday, November 21, 2022 at 8:45:08 AM UTC+1, briot.e...@gmail.com wrote:
> Although running external scripts from gprbuild is indeed unlikely, it is definitely in the realms of gprconfig (which is run first to generate the .cgpr config file).
> For this one would need to provide some .xml file that explains what command to run, and what to generate in the .cgpr file (likely adding some `-I` compiler
> switches for C files).

We are considering adding the feature to Alire directly. In particular an easy way to get relevant info from pkg-config.

Re: How to build Python3 support into GNATCOLL with alire

<lyr0xwvsng.fsf@pushface.org>

  copy mid

https://www.rocksolidbbs.com/devel/article-flat.php?id=9060&group=comp.lang.ada#9060

  copy link   Newsgroups: comp.lang.ada
Path: i2pn2.org!i2pn.org!aioe.org!16NWJ6+ffT/gI+JIGgfmBw.user.46.165.242.75.POSTED!not-for-mail
From: simon@pushface.org (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: <lyr0xwvsng.fsf@pushface.org>
References: <a478cf79-687b-4c03-94bf-01c982ff277bn@googlegroups.com>
<ly8rk6y4qz.fsf@pushface.org>
<3e7e9f66-9e74-4a04-98d9-73cc14d7e80bn@googlegroups.com>
<lyzgclwc6t.fsf@pushface.org>
<13bd6b02-2214-45aa-bdbb-900b1753baf1n@googlegroups.com>
<cf917e0c-37f5-4272-81ae-3a9ea4874f31n@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=
 by: Simon Wright - Mon, 21 Nov 2022 22:39 UTC

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.


devel / comp.lang.ada / How to build Python3 support into GNATCOLL with alire

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor