From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.5-pre1 (2020-06-20) on ip-172-31-74-118.ec2.internal X-Spam-Level: X-Spam-Status: No, score=0.0 required=3.0 tests=BAYES_20,FREEMAIL_FROM autolearn=ham autolearn_force=no version=3.4.5-pre1 X-Received: by 2002:ac8:1307:: with SMTP id e7mr11943844qtj.279.1607125345255; Fri, 04 Dec 2020 15:42:25 -0800 (PST) X-Received: by 2002:a37:bac7:: with SMTP id k190mr12114983qkf.464.1607125345130; Fri, 04 Dec 2020 15:42:25 -0800 (PST) Path: eternal-september.org!reader02.eternal-september.org!news.gegeweb.eu!gegeweb.org!usenet-fr.net!proxad.net!feeder1-2.proxad.net!209.85.160.216.MISMATCH!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail Newsgroups: comp.lang.ada Date: Fri, 4 Dec 2020 15:42:24 -0800 (PST) In-Reply-To: Complaints-To: groups-abuse@google.com Injection-Info: google-groups.googlegroups.com; posting-host=124.149.31.79; posting-account=d51RWwoAAADvR-x0zYAtT9z3CRxT1eXo NNTP-Posting-Host: 124.149.31.79 References: <7223f058-c593-4905-b9ba-0a5cb3e64de2n@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Import Python library into an Ada package? From: Roger Mc Injection-Date: Fri, 04 Dec 2020 23:42:25 +0000 Content-Type: text/plain; charset="UTF-8" Xref: reader02.eternal-september.org comp.lang.ada:60719 List-Id: > What about this: > > https://docs.adacore.com/gnatcoll-docs/scripting.html > > I have a rudimentary Python bindings independent on GNATColl, which I > use to run Python scripts from Ada. They were designed to load Python > dynamically, I did not want to make the application dependent on Python > installed. If you want, you can use them as a template. There is no > documentation, but the code using them. But as I said, better not... (:-)) > -- > Regards, > Dmitry A. Kazakov > http://www.dmitry-kazakov.de I would really appreciate seeing your "rudimentary Python bindings ". In the meantime I must study gnatcoll-docs/scripting.html more closely. I have made a start using an example I found on the web but unfortunately it crashes with an EXC_SOFTWARE, Software generated exception which I think may be due to an invalid process descriptor. Thanks, Roger