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=-0.0 required=3.0 tests=BAYES_40,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a0c:8041:0:b0:4af:b13b:2624 with SMTP id 59-20020a0c8041000000b004afb13b2624mr61056258qva.92.1668109115628; Thu, 10 Nov 2022 11:38:35 -0800 (PST) X-Received: by 2002:a05:622a:5806:b0:3a5:591e:a60a with SMTP id fg6-20020a05622a580600b003a5591ea60amr1549355qtb.309.1668109115445; Thu, 10 Nov 2022 11:38:35 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.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: Thu, 10 Nov 2022 11:38:35 -0800 (PST) Injection-Info: google-groups.googlegroups.com; posting-host=152.249.156.27; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu NNTP-Posting-Host: 152.249.156.27 User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Compiling Python code from GPRBuild (Calling from GNAT Studio) From: "Rego, P." Injection-Date: Thu, 10 Nov 2022 19:38:35 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2036 Xref: reader01.eternal-september.org comp.lang.ada:64593 List-Id: Hello everyone, long time no see some of you, I hope everyone is fine. I'm trying to compile some Python files from an Ada project (in an integration which will consist of Ada, Python and Rust). But let's simplify the things, so I created a Python-only project using this : -- testpy.gpr project Testpy is for Source_Dirs use ("src"); for Object_Dir use "obj"; for Main use ("Analysis.py"); for Languages use ("Python"); for Source_Files use ("Analysis.py"); end Testpy; and as I tried to compile `Analysis.py` I got the messages > gprbuild -ws -c -f -u -PP:\Gnat\testpy.gpr Analysis.py > testpy.gpr:7:26: language unknown for "analysis.py" > gprbuild: "P:\Gnat\testpy.gpr" processing failed > [2022-11-10 16:23:10] process exited with status 4, elapsed time: 03.78s So, obviously I am missing something (and yeah, I took the last 2h searching the docs...), so, please, how would I fix that? Thanks Rego. ps.: had posted "running" instead of "compiling" at the title in previous post, sorry that.