Commit Graph

8057 Commits

Author SHA1 Message Date
rdb e582436719 dist: Fix bdist_apps regression as of 88d27aa31c 2023-05-08 19:48:57 +02:00
rdb aed2581ce6 showbase: Clean up internal event handlers on destroy()
Fixes regression in cd6ad8285e
2023-03-09 11:22:35 +01:00
rdb 4da2059758 dist: Add extraInitFuncs option to FreezeTool
Useful for init_libpnmimagetypes in particular
2023-02-26 11:20:00 +01:00
Erica M. ("Loonatic") cd0eb27dc7
NotifyPanel: Rename variable that shadows builtin (#1470) 2023-02-25 11:22:47 +01:00
rdb 32c73763e2 Merge branch 'release/1.10.x' into incoming 2023-02-24 22:40:53 +01:00
rdb 4f9542c96a dist: Fix issues with deploying setuptools 2023-02-24 22:39:55 +01:00
rdb 88d27aa31c dist: Import pkg_resources lazily 2023-02-24 22:39:55 +01:00
rdb 036e5dc2db dist: Switch FreezeTool over to sysconfig
distutils is deprecated and will be removed as of Python 3.12

Its use should not be affected by #1230 since it only uses it to query the include directory, not any other paths

Addresses part of #1395
2023-02-24 22:39:51 +01:00
rdb eeba583176 dist: Support overriding list of built-in modules
Useful when building for a platform that has a different set of built-in modules
2023-02-24 22:36:07 +01:00
rdb 7cd4ca07ed task: Check sys.platform instead of PandaSystem for emscripten tag
This seems to have been standardized in upstream cpython now
2023-02-24 22:35:21 +01:00
rdb 622eda951f dist: Implement fallback for sysconfig for FreezeTool (see #1395) 2023-02-24 22:24:41 +01:00
rdb 79ba760319 direct: Backport assorted fixes from master 2023-02-24 22:20:01 +01:00
rdb 6cfa73d268 dist: Add hidden import for setuptools.monkey -> setuptools.msvc 2023-02-24 22:19:33 +01:00
rdb 0fdb8a244b dist: Silently ignore missing hidden imports 2023-02-24 22:19:03 +01:00
rdb ed4d2a2280 dist: Add support for emscripten platform to FreezeTool.py 2023-02-24 22:05:05 +01:00
rdb 17e3f3331c directtools: Import cluster code only on demand
This prevents importing directtools modules also importing cluster code, which may fail to import with Panda builds that have net code disabled
2023-02-22 23:49:15 +01:00
rdb e08cba191e dist: Significant performance boost for pfreeze
This method seems to run very slow in some versions of Python, this runs much faster
2023-02-22 21:54:53 +01:00
rdb 10dd0f79bc particles: Fix regression loading .ptf files
Regression introduced in #1454
2023-02-22 20:26:51 +01:00
rdb eefb51f510 dtoolutil: Add small_vector implementation and use it
This vector implementation does is optimized for the case of having only a small number of elements, which are stored directly on the vector object rather than being allocated from the heap.  If the capacity exceeds this small number, then a heap allocation is done.

This should improve performance in a couple of cases where vectors typically store 1 element and rarely more than that.
2023-02-22 16:48:11 +01:00
rdb 4f9092d568 wxwidgets: Fix errors running Panda shell 2023-02-22 12:04:51 +01:00
rdb 37b5c9ad9e direct: More code style changes 2023-02-22 11:52:19 +01:00
rdb 9a15e9245c direct: Additional cleanup, update .pylintrc file 2023-02-22 02:44:53 +01:00
rdb 88a6484ab3 PythonUtil: Remove unused "superlog" functions 2023-02-20 20:59:33 +01:00
rdb 8b1126ba3e direct: General cleanup of Python code 2023-02-20 20:52:14 +01:00
rdb 5d63c7e898 Merge branch 'release/1.10.x' 2023-02-20 19:27:58 +01:00
rdb 8ee4f8dee2 showbase: Remove dead branch in ContainerLeakDetector 2023-02-20 18:53:14 +01:00
rdb 231ba92e31 showbase: Fix missing `sys` import in ContainerLeakDetector 2023-02-20 18:50:04 +01:00
rdb 93670b5942 dist: Strip .abi3.so suffix from libraries 2023-02-20 18:32:04 +01:00
rdb ccd1d4727d dist: Add hidden imports for older scipy version 2023-02-20 18:31:54 +01:00
rdb 718f72fe01 cluster: Fix typo in ClusterServer.addControlMapping 2023-02-20 18:25:28 +01:00
rdb 5ecd6249d1 directdevices: Fix typo in DirectDeviceManager.normalizeChannel 2023-02-20 18:24:15 +01:00
rdb 92e3dbbe58 dist: Remove dead code in Icon class 2023-02-20 18:04:35 +01:00
rdb 127798437f particles: Fix missing import in ParticleFloorTest 2023-02-20 18:04:22 +01:00
rdb a3f6a62de0 showbase: Fix undefined function use in ProfileSession.py 2023-02-20 18:04:04 +01:00
rdb afd3df8ef1 tkpanels: Fix use of removed `cmp()` function 2023-02-20 17:44:37 +01:00
rdb 6aef8159b1 leveleditor: Fix use of removed `cmp()` function 2023-02-20 17:29:00 +01:00
Timothy Paustian 50de135641
task: Fix re-adding task object removing extraArgs (#1132)
Fixes #1097
2023-02-13 10:58:02 +01:00
rdb 5e26aae1ff cleanup: Fix assorted issues uncovered by clang-tidy 2023-02-12 18:17:03 +01:00
John C. Allwein 7b7294b15d direct: fix missing import in Loader 2023-02-12 09:28:04 -07:00
WMOkiishi c7c70bc32a
direct: Cut down on usage of `import *` (#1454)
* Remove most `import *`s in `direct`

* Address feedback
2023-02-12 13:16:52 +00:00
rdb c076d5ad08 showbase: Don't return same texture object if loaded with different settings
Follow-up to #1105
2023-02-07 12:26:41 +01:00
rdb 8bc1743d75 Merge branch 'release/1.10.x' 2023-01-27 16:17:41 +01:00
Disyer 6cb074e5c8 distributed: Fix segfault when ConnectionRepository is verbose by holding GIL
Also removes obsolete USE_PYTHON_2_2_OR_EARLIER macro

Closes #1430
2023-01-16 15:14:31 +01:00
David Crompton a88b6ee8db showbase: Allow `destroy()` to be called from non-main thread
Also adds an error message when `run()` is called from non-main thread

Closes #1436
Fixes #1269

Co-authored-by: rdb <git@rdb.name>
2023-01-16 14:15:19 +01:00
David Crompton 4d90ce5c5a bdist_apps: Fix assertion error from calling finalize_options twice 2023-01-14 19:51:02 +00:00
David Crompton 581f374ba6 Notifier: Add custom exception type for Notifier.error 2023-01-10 23:15:20 +01:00
David Crompton cd6ad8285e ShowBase: Add a private DirectObject to allow use of base.accept for window-events 2023-01-10 21:50:20 +00:00
Cary Sandvig b10b49bd6b fix SocketStream::flush() covariant 2023-01-03 11:48:36 -05:00
rdb cfd18bb16f display: Add support for asynchronous screenshot download 2022-12-26 20:01:38 +01:00
rdb 92185bcb28 Merge branch 'release/1.10.x' 2022-12-19 16:42:29 +01:00