]>
gerrit.simantics Code Review - simantics/python.git/log
summary |
shortlog | log |
commit |
commitdiff |
review |
tree
first ⋅ prev ⋅ next
Tuukka Lehtonen [Thu, 24 Oct 2019 09:38:05 +0000 (12:38 +0300)]
Change to tycho 1.4.0
Reino Ruusu [Wed, 23 Oct 2019 19:28:22 +0000 (22:28 +0300)]
Report and log failure of Python DLL loading
gitlab #2
Change-Id: I2e568ca49e0974cb4b7aedbdc14e00c594f991e8
Reino Ruusu [Wed, 23 Oct 2019 19:27:19 +0000 (22:27 +0300)]
Several updates to Pyhthon-link behaviour.
Linking against any Python 3 version > 3.4.
Use of Py_LIMITED_API macro and required API changes.
gitlab #3
Fix handling of unnnormalized exceptions
gitlab #5
Change-Id: I7e6ac66861a382cc1608ed16b751520a292fbc13
Reino Ruusu [Wed, 23 Oct 2019 19:03:06 +0000 (22:03 +0300)]
Simplify Python exception presentation
gitlab #4
Change-Id: Ic5e80679dbcaf8276a91a95c7af8e67a8ecb483c
Tuukka Lehtonen [Thu, 14 Jun 2018 11:45:31 +0000 (14:45 +0300)]
Added LICENSE
tkorvola [Tue, 7 Feb 2017 17:40:00 +0000 (19:40 +0200)]
Plug more reference leaks.
I hope I am getting it right. The Python C API is a bit messy
regarding reference behaviour.
Change-Id: I0e78b4f8e46eb387caf0d751f6bffac5f1b10c18
tkorvola [Tue, 7 Feb 2017 11:39:18 +0000 (13:39 +0200)]
Plug leaks from PySequence_GetItem.
One needs to be careful and RTFM: PySequence_GetItem returns a new
reference but, e.g., PyDict_GetItem does not.
Change-Id: I93f08163a2bbf66da2966044c7bfc7abcd140bbd
Reino Ruusu [Wed, 1 Feb 2017 19:17:18 +0000 (21:17 +0200)]
Support for output and exceptions without tracebacks
Added a redundant implementation of SCLReportingWriter for backward
compatibility.
Added support for a user-provided Writer object in
executePythonStatement.
Moved instantiation of SCLReportingWriter to Java.
Added support for sys.stdout.flush() in Python.
Change-Id: Icf53ed000844d136b93aa86f7bf41db3559f8748
tkorvola [Thu, 2 Feb 2017 11:01:37 +0000 (13:01 +0200)]
Add missing PythonCompatible instances.
Boolean and Long were missing, also Vectors of them.
Change-Id: I8af943c78924721fb281a66b468f0dfbe530a7a2
tkorvola [Wed, 1 Feb 2017 17:48:01 +0000 (19:48 +0200)]
Mind the threads in writeSCL.
Both JNIEnv and PyThreadState are per thread. So check that we are
in the main thread before messing with JNIEnv. Writes from other
threads (possibly created in Python) are just dropped; those seem
difficult to do right.
Also unlock GIL while calling the Java method.
Change-Id: I49a447e22ba4411800445f7149f5bc257a082e4f
Reino Ruusu [Wed, 1 Feb 2017 16:02:35 +0000 (18:02 +0200)]
Fixed merge errors.
Change-Id: Ia2c8157c0f81c7b77033a5a2477a4671fcb3ac3f
Reino Ruusu [Wed, 1 Feb 2017 15:32:43 +0000 (17:32 +0200)]
Merge branch 'change/300/2'
Conflicts:
org.simantics.pythonlink.win32.x86_64/jnipython.dll
org.simantics.pythonlink.win32.x86_64/src/sclpy.c
org.simantics.pythonlink/src/org/simantics/pythonlink/PythonContext.java
Change-Id: I4a07bce4c1f4a0134ad774161ff79821f0d7e018
Reino Ruusu [Wed, 1 Feb 2017 13:00:21 +0000 (15:00 +0200)]
Merge "Macro for Python installation directory."
Tuukka Lehtonen [Tue, 31 Jan 2017 12:06:08 +0000 (14:06 +0200)]
Mavenized Simantics Python bindings projects.
mvn package in the root directory now generates an update site
from the org.simantics.pythonlink.feature in
org.simantics.pythonlink.repository/target/repository.
refs #6879
Change-Id: If48854ced06847d138725222106fadc5fb3c50b7
Timo Korvola [Mon, 30 Jan 2017 15:58:18 +0000 (17:58 +0200)]
Print exception type name if we can't get a traceback.
Also decref PyErr_Fetch results.
Change-Id: I3e497d6750b08e24a9631c83a2b6e0e3c1502d79
Timo Korvola [Mon, 30 Jan 2017 14:27:13 +0000 (16:27 +0200)]
All getters now use GIL as well.
More macro madness. Hopefully locking is now OK.
Change-Id: I3f487cc74154574032492b9dd5c4f46b27ee7a4e
Timo Korvola [Mon, 30 Jan 2017 09:13:48 +0000 (11:13 +0200)]
All variable setters now use GIL.
Most setters are now defined by a CPP macro. It is not pretty and may
well be the ugliest way to do this except for the one it replaces.
Change-Id: I27d36bfef6252f78ee801ebbc022d6fe75a3b49c
Timo Korvola [Fri, 27 Jan 2017 14:04:24 +0000 (16:04 +0200)]
Add some PyEval_{Restore,Save}Thread calls.
More are needed, but it is a mess of copy-paste programming.
Change-Id: Ie4dcc7627349cab84c37cb0b6c7275876373e25d
Timo Korvola [Fri, 27 Jan 2017 13:44:49 +0000 (15:44 +0200)]
Use the executor for all Python C API calls.
Change-Id: I4330f5aea0bdd4bada6c0fd24798d726df563861
Timo Korvola [Thu, 26 Jan 2017 13:41:23 +0000 (15:41 +0200)]
Macro for Python installation directory.
Change-Id: I0b33d3f237075b8788a565209306527e84b05268
Reino Ruusu [Wed, 25 Jan 2017 16:51:02 +0000 (18:51 +0200)]
Python tweaks
- Changed the way context modules are created
- Allow Python to produce SCL console output
Change-Id: I41e8b876d55db8815959ebc90487c3e481f4604b
tuorjr [Thu, 1 Dec 2016 16:31:57 +0000 (16:31 +0000)]
Get Python traceback output in the messages of exceptions from the pythonlink feature.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1703
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Tue, 1 Nov 2016 15:19:38 +0000 (15:19 +0000)]
Removed unnecessary python3.dll dependency.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1700
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Wed, 12 Oct 2016 11:52:49 +0000 (11:52 +0000)]
Deleted error logs from JVM crashes.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1696
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Tue, 11 Oct 2016 10:56:12 +0000 (10:56 +0000)]
Addition of null value check to getPythonObject()
Test with new databoard SCL functionality
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1695
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Tue, 4 Oct 2016 16:22:17 +0000 (16:22 +0000)]
Added support for dynamically typed data access and a Variable interface.
Note: Proper function of the Variable interface depends on enhancement #6738.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1694
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Wed, 28 Sep 2016 10:16:20 +0000 (10:16 +0000)]
Added C source code for the DLL and a CDT project aspect for compiling it.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1693
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Wed, 28 Sep 2016 10:14:22 +0000 (10:14 +0000)]
Some changes to Python.scl.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1692
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Mon, 26 Sep 2016 15:55:11 +0000 (15:55 +0000)]
Added lauchers for test cases.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1691
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Mon, 26 Sep 2016 15:44:59 +0000 (15:44 +0000)]
Some fixes to Python integration.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1690
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Mon, 26 Sep 2016 15:33:15 +0000 (15:33 +0000)]
Initial commit of Python Integration feature.
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1689
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952
tuorjr [Tue, 24 Nov 2015 10:25:22 +0000 (10:25 +0000)]
git-svn-id: https://www.simantics.org/svn/simantics-incubator/reino@1627
e36c2e66 -7d30-0410-bdb2-
d9e1f5a6d952