From: "Rego, P." <pvrego@gmail.com>
Subject: Re: Running Python code from GPRBuild (Calling from GNAT Studio)
Date: Fri, 11 Nov 2022 02:25:57 -0800 (PST) [thread overview]
Message-ID: <673c0ad1-dd6d-4cc6-a191-3bcff7f1c5ddn@googlegroups.com> (raw)
In-Reply-To: <tkjs57$1abq$1@gioia.aioe.org>
Hi Dmitry,
> Python is not a compiled language.
Indeed. It will not generate an object like any compiled language.
But Since Python is included in Languages list from Project properties, I expected
that the IDE were capable of statically checking the syntax and pointed the
"compilation" errors. Also, I expected that we could run the script from GPS, and
be able to debug it.
> 1. If you want to create a Python module in a form of a dynamically
> linked library, you must use C or Ada for that.
Not the case, I also don't see advantages of it (so I agree, I'd go directly to Ada or C).
> 2. If you rather meant pre-compiled binary code (*.pyc). Python creates
> them by py_compile command. See
> https://docs.python.org/3/library/py_compile.html#py_compile.compile
> There is also command-line interface:
> https://docs.python.org/3/library/compileall.html
> You possibly could configure gpr to call compileall on *.py files,
> though it would make no sense to me.
I think this would be the closer of what I was trying to do.
The idea is to help in the development. Instead of having to develop the
Python part from a separate IDE, being able to code in the same would
speed up things.
Would you have some example of it? (how to configure gpr to call
compileall on *.py files).
Thanks!
next prev parent reply other threads:[~2022-11-11 10:25 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. [this message]
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
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