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_20,FREEMAIL_FROM, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Received: by 2002:a05:6214:5445:b0:4bb:d324:3b0 with SMTP id kz5-20020a056214544500b004bbd32403b0mr1477222qvb.14.1668166129663; Fri, 11 Nov 2022 03:28:49 -0800 (PST) X-Received: by 2002:a05:6214:5b89:b0:4bb:6b72:3c36 with SMTP id lq9-20020a0562145b8900b004bb6b723c36mr1383188qvb.121.1668166129489; Fri, 11 Nov 2022 03:28:49 -0800 (PST) Path: eternal-september.org!reader01.eternal-september.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: Fri, 11 Nov 2022 03:28:49 -0800 (PST) In-Reply-To: Injection-Info: google-groups.googlegroups.com; posting-host=152.249.156.27; posting-account=TRgI1QoAAABSsYi-ox3Pi6N-JEKKU0cu NNTP-Posting-Host: 152.249.156.27 References: <7d578e15-d21e-4eae-a519-d98c1bf1145cn@googlegroups.com> <673c0ad1-dd6d-4cc6-a191-3bcff7f1c5ddn@googlegroups.com> User-Agent: G2/1.0 MIME-Version: 1.0 Message-ID: Subject: Re: Running Python code from GPRBuild (Calling from GNAT Studio) From: "Rego, P." Injection-Date: Fri, 11 Nov 2022 11:28:49 +0000 Content-Type: text/plain; charset="UTF-8" X-Received-Bytes: 2297 Xref: reader01.eternal-september.org comp.lang.ada:64600 List-Id: > You could start with something like this: Thanks Dmitry! > project Python is > for Languages use ("Python"); > package Compiler is > for Driver ("Python") use > "C:/GNAT/2021/libexec/gnatstudio/gnathub/share/gnathub/python/python.exe"; > for Required_Switches ("Python") use ("-m", "compileall"); > end Compiler; > package Naming is > for Body_Suffix ("Python") use ".py"; > end Naming; > end Python; Got it. I didn't include naming and compiler options. Now it runs, but it asks for a linker > gprbuild: no linker specified and no default linker in the configuration (where idk if it makes sense since we wont be linking to an object) For a no error py it "compiles" clean (ok I'll call compilation, but we understand it's not "the compilation"), but in compilation log it doesn't show the warnings that are included in the edit window with the opened file. If I include an error, it shows in the log where the error happened, but doesn't show in the locations. GPS will be not very useful this way.