rdb
18e8918138
interrogate: Reimplement subscript assignment "operator"
...
This redoes the handling of `obj[n] = item` to occur in InterrogateBuilder instead so that it doesn't prevent the same remap from being used as getitem.
This fixes the non-const variant of InstanceList[n].
2021-04-25 11:27:18 +02:00
rdb
179f316b36
interrogate: Wrap anonymous parameter names as positional-only args
2021-03-01 19:33:43 +01:00
rdb
8cbe36b352
Merge branch 'release/1.10.x'
2021-03-01 19:33:27 +01:00
rdb
bdb2ef1631
pipeline: Fix crash upon exception in custom thread
...
We can't call PyErr_Restore() without a valid thread state, which won't exist in a custom thread if we just called PyGILState_Release(). Not sure how this has ever worked.
2021-03-01 16:19:53 +01:00
rdb
a7042091be
py_panda: backport some py_compat.h definitions
2021-01-01 16:37:21 +01:00
rdb
a1b2d5b8dc
Make use of new function call methods in Python 3.9
2020-12-12 17:28:21 +01:00
rdb
93900a203e
putil: Backport part of 9d8c523dfa
...
Fixes #886
2020-11-17 23:36:06 +01:00
rdb
66ac3be604
Merge branch 'release/1.10.x' into master
2020-09-12 23:23:58 +02:00
rdb
2402594808
interrogatedb: Fix faulty version comparison in Python 3.10
2020-09-12 22:50:29 +02:00
rdb
9d8c523dfa
putil: Assorted improvements to BitArray, SparseArray, *BitMask*:
...
* Support converting BitMask types to int
* BitArray constructor accepts a Python long of arbitrary size
* DoubleBitMask (and QuadBitMask, by extension) supports Python long in constructor
* Support for pickling (except DoubleBitMask)
* All of them now properly define __bool__()
* More unit tests
Fixes #886
2020-04-01 20:31:16 +02:00
Leandro (Cerberus1746) Benedet Garcia
5f7809469c
general: removed all WIN32, WIN32_VC and friends
2020-02-05 22:45:03 -07:00
rdb
b272af8bbf
Merge branch 'cmake'
2020-01-22 11:20:51 +01:00
rdb
b78b7be326
Merge branch 'release/1.10.x'
2019-12-30 01:50:54 +01:00
rdb
ac85b05400
py_compat: fix _PyObject_CallNoArg in Python 3.5
2019-12-25 16:32:19 +01:00
Sam Edwards
9b7bcf2564
Merge branch 'master' into cmake
2019-11-07 21:21:04 -07:00
Sam Edwards
856754a3de
general: Don't abuse PyErr_Restore
...
The intended purpose of this function is to restore an exception
that has already been raised and saved with PyErr_Fetch. It should
not be used to raise new exceptions nor should it be used to clear
the current exception.
The especially egregious example is
`PyErr_Restore(exc_type, nullptr, nullptr);`
as the null value may not be handled correctly.
2019-11-05 18:44:20 -07:00
Sam Edwards
cf59d3d983
CMake: Remove p3dtoolconfig from build
...
It's just p3prc now, so instead we install some symlinks
2019-11-04 14:02:06 -07:00
Sam Edwards
9ecaa0056b
CMake: Break out p3interrogatedb as a first-class library
2019-10-15 23:27:03 -06:00
Sam Edwards
5fa4af9189
CMake: Rely on GNUInstallDirs to specify install paths
...
This makes multiarch OSes happy as they can dictate that
64-bit libraries go into 'lib64'
2019-08-31 00:48:42 -06:00
Sam Edwards
1a654cba04
CMake: Record the location that headers are installed
...
This populates INTERFACE_INCLUDE_DIRECTORIES on the targets
after they're installed.
2019-08-30 22:58:18 -06:00
Sam Edwards
19ed9f6b47
Merge branch 'master' into cmake
2019-08-24 18:07:12 -06:00
rdb
df8ccdb7ab
Add support for Python 3.8
2019-08-13 17:48:32 +02:00
Sam Edwards
6097d34ead
CMake: Neatly format everything for readability and consistency
2019-04-14 22:37:18 -06:00
Sam Edwards
f8161cc529
Merge branch 'master' into cmake
2019-03-12 02:03:16 -06:00
rdb
12eeff0dec
py_panda: fix memory leak accessing map/seq properties
2019-03-07 17:33:21 +01:00
rdb
8e4add0326
interrogate: fix refcount trouble assigning PyObject* properties
...
In particular, this fixes accessing PythonTask.__dict__
2019-03-04 16:46:28 +01:00
rdb
5310945f4c
py_panda: fix use of macro that was removed in Python 3.8
2019-02-11 23:36:30 +01:00
Sam Edwards
1a17808991
Merge branch 'master' into cmake
2019-01-06 15:37:07 -07:00
Sam Edwards
ce4985a333
interrogatedb: Fix missing 'static' keyword
2019-01-02 10:18:59 -07:00
Sam Edwards
d4df1b3762
Merge branch 'master' into cmake
2019-01-02 06:09:15 -07:00
rdb
ac8be1a2e6
py_panda: fix int-to-enum conversion in Python 2
...
Fixes #498
2019-01-01 16:32:04 +01:00
rdb
0a43008313
py_panda: avoid duplicate symbol issues with LINK_ALL_STATIC
...
Fixes #478
2018-12-30 16:42:50 +01:00
Sam Edwards
3b194c75e4
Merge branch 'master' into cmake
2018-12-28 22:15:44 -07:00
rdb
01915a36db
Merge branch 'master' into deploy-ng
2018-12-26 23:41:50 +01:00
rdb
6df8aede1f
interrogatedb: add interrogate_element_is_sequence/mapping
2018-12-23 15:44:01 +01:00
rdb
4c0fa1e75d
Merge branch 'master' into deploy-ng
2018-12-16 22:36:45 +01:00
rdb
7995d483ab
py_panda: make standard_type_members static and internal
2018-12-16 18:46:30 +01:00
Sam Edwards
99fee1a64d
CMake: Assign COMPONENT and EXPORT to all targets
2018-12-06 17:48:44 -07:00
Sam Edwards
8df53698f4
CMake: Add missing .h/.I files that weren't getting installed
2018-11-28 16:13:05 -07:00
Sam Edwards
7f8d7366dc
CMake: Update for upstream Interrogate changes
...
- "igateruntime" is no longer a thing
- interrogate_module embeds a preamble; we have to provide it
- WindowProperties now has an extension
2018-11-12 19:16:28 -07:00
Sam Edwards
6b26889e7e
Merge branch 'master' into cmake
2018-11-12 15:41:42 -07:00
rdb
3d7fcf2ce9
Merge branch 'master' into deploy-ng
2018-11-12 18:31:43 +01:00
Sam Edwards
a9dfd8352e
general: Distinguish local/system includes
...
This changes includes so that local includes are consistently
#include "localFile.h"
while system and third-party includes are consistently
#include <systemFile.h>
This commit mostly converts the former to the latter; the two
exceptions are in android_main.cxx and fmodAudioSound.h, where
the reverse was necessary.
2018-11-10 18:00:10 -07:00
rdb
cf65010a54
Merge branch 'master' into deploy-ng
2018-11-06 23:40:24 +01:00
rdb
49b72fb198
Move Python support code from libp3interrogatedb to generated module
...
This prevents libp3interrogatedb from having a dependency on the Python library.
See #387
2018-11-06 19:24:37 +01:00
rdb
e6f870ece6
Remove Python type tables from interrogatedb
2018-11-05 22:14:25 +01:00
Sam Edwards
e604d71fbc
CMake: Don't build p3dconfig anymore
...
dconfig.cxx was recently deleted.
p3dconfig is now just an interface library, since it still
contains a header which we'd like on the search path of
libraries that use it.
2018-11-03 23:46:34 -06:00
Sam Edwards
58c065d970
Merge branch 'master' into cmake
2018-10-28 05:11:14 -06:00
Mitchell Stokes
b16f9f8f4f
Merge branch 'master' into deploy-ng
2018-10-18 17:58:21 -07:00
loblao
e67d2a16c1
Dtool_PyModuleInitHelper: Fix segfault
2018-10-18 12:14:20 -03:00