comp.lang.ada
 help / color / mirror / Atom feed
From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Running Python code from GPRBuild (Calling from GNAT Studio)
Date: Fri, 11 Nov 2022 03:28:49 -0800 (PST)	[thread overview]
Message-ID: <dcb10b32-6d6b-493e-b4e7-15059e6473bdn@googlegroups.com> (raw)
In-Reply-To: <tkla8a$aqi$1@gioia.aioe.org>

> 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. 

  reply	other threads:[~2022-11-11 11:28 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-10 19:25 Running Python code from GPRBuild (Calling from GNAT Studio) Rego, P.
2022-11-10 21:57 ` Dmitry A. Kazakov
2022-11-11 10:25   ` Rego, P.
2022-11-11 11:04     ` Dmitry A. Kazakov
2022-11-11 11:28       ` Rego, P. [this message]
2022-11-11 13:30         ` Dmitry A. Kazakov
2022-11-11 13:40           ` Dmitry A. Kazakov
2022-11-11 18:12             ` Rego, P.
2022-11-11 18:08           ` Rego, P.
2022-11-11 19:50             ` Dmitry A. Kazakov
2022-11-11 21:34               ` Rego, P.
2022-11-11 15:20         ` Egil H H
2022-11-11 18:14           ` Rego, P.
2022-11-11 20:05             ` Egil H H
2022-11-11 21:24               ` Rego, P.
2022-11-12 17:40 ` Stephen Leake
replies disabled

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox