From: Egil H H <ehh.public@gmail.com>
Subject: Re: Running Python code from GPRBuild (Calling from GNAT Studio)
Date: Fri, 11 Nov 2022 07:20:50 -0800 (PST) [thread overview]
Message-ID: <e1812a6d-18a7-4cd6-b098-82e440718a19n@googlegroups.com> (raw)
In-Reply-To: <dcb10b32-6d6b-493e-b4e7-15059e6473bdn@googlegroups.com>
On Friday, November 11, 2022 at 12:28:50 PM UTC+1, Rego, P. wrote:
> > 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.
There are a couple of project level attributes you can play around with:
for Object_Generated("Python") use "False";
and
for Objects_Linked("Python") use "False";
next prev parent reply other threads:[~2022-11-11 15:20 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.
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 [this message]
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