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!gy7opw3oYmwPg+L8gXeD2w.user.46.165.242.75.POSTED!not-for-mail From: Stephen Leake Newsgroups: comp.lang.ada Subject: Re: Running Python code from GPRBuild (Calling from GNAT Studio) Date: Sat, 12 Nov 2022 09:40:37 -0800 Organization: Aioe.org NNTP Server Message-ID: <867d009ilm.fsf@stephe-leake.org> References: <7d578e15-d21e-4eae-a519-d98c1bf1145cn@googlegroups.com> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: gioia.aioe.org; logging-data="14014"; posting-host="gy7opw3oYmwPg+L8gXeD2w.user.gioia.aioe.org"; mail-complaints-to="abuse@aioe.org"; User-Agent: Gnus/5.13 (Gnus v5.13) X-Notice: Filtered by postfilter v. 0.9.2 Cancel-Lock: sha1:Y7BP2JtNaaMLMy0DlUwftNOSw4s= Xref: reader01.eternal-september.org comp.lang.ada:64612 List-Id: "Rego, P." writes: > 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" So it does not associate ".py" with "Python". Try setting Spec_Suffix, Body_Suffix in package Naming. -- -- Stephe