Commit Graph

7708 Commits

Author SHA1 Message Date
rdb b4e8cf6958 dist: Fix crash running deploy-stub on arm64 with 16 KiB pages
arm64/aarch64 kernels may be configured with 4K, 16K or 64K pages, 16K seems to be most common.

The alignment does cause a big waste of space, we may have to revisit the use of mmap, or just mmap the whole executable
2023-10-22 11:29:23 +02:00
rdb 2539de14fc wxwidgets: Fix some issues with WxSlider, code cleanup 2023-10-22 11:27:15 +02:00
rdb 26fae21cb9 showbase: Suppress deprecation warning 2023-10-15 16:29:11 +02:00
rdb ab0c177c79 showbase: Fix redundant call to `entry_points()` in Loader 2023-10-15 14:26:56 +02:00
rdb b2465c3b38 tests: Fix running tests on Windows and with Python 2.7 2023-10-14 17:31:35 +02:00
rdb c1c035d5c9 showbase: Switch Loader entry point detection to importlib.metadata
Only in Python 3.8 and up, where this module is available, otherwise it falls back to pkg_resources

Add unit test for custom entry point loaders
2023-10-14 11:27:46 +02:00
rdb e4738194d5 pfreeze: use clang, fix missing path with non-system Python on macOS 2023-10-13 13:22:17 +02:00
rdb 2a5228b05f Fix compatibility with Python 3.12 by removing use of imp module
Some modules (such as VFSImporter, and various modules in direct.p3d that depend on it) are still unavailable.
2023-10-13 13:21:34 +02:00
rdb 8596207d8e directnotify: Don't assume presence of softspace attribute 2023-09-16 09:50:55 +02:00
rdb 360bf20933 dcparser: Fix segfault with nested struct or switch
Fixes #1499
2023-08-04 14:02:13 +02:00
rdb c08353dea7 showbase: Don't disable Windows mesasge loop with multi-threaded pipeline
Fixes half of #1494
2023-08-04 13:52:11 +02:00
rdb 3df594a6dd dist: Add hidden import for shapely
[skip ci]
2023-05-08 19:50:21 +02:00
rdb 1072e6bf1a dist: Show better error message when targeting outdated platform
This occurs if someone explicitly mentions eg. manylinux1 in their platforms list and then updates to Python 3.10
2023-05-08 18:30:25 +02:00
rdb 3f76f4aa70 dist: Strip out delvewheel patch from packaged Python code
Fixes #1492
2023-05-08 18:18:42 +02: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 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
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
rdb eafcfe1d70 motiontrail: Fix Python implementation error in double-prec mode 2022-12-19 15:17:19 +01:00
rdb 32297ecd02 showbase: Fix some members not showing up in API documentation 2022-12-16 19:37:49 +01:00
rdb 42372e139c motiontrail: Update API documentation 2022-12-16 19:37:28 +01:00
rdb 19186781f3 motiontrail: Clean up and optimization of C++ implementation 2022-12-16 16:14:06 +01:00
rdb 8ab37b8804 motiontrail: Add easier way to call `add_vertex()`
Currently, you must pass in a function, which is a little awkward compared to just passing in a position.  Now you can just pass in a vertex position, similar to the C++ interface.
2022-12-15 17:58:46 +01:00
rdb 154223d075 motiontrail: Clean up and document MotionTrail class 2022-12-15 17:58:23 +01:00
rdb 1375d38725 showbase: Fix assorted issues with GarbageReport:
* Use of removed `types.InstanceType`
* New-style classes are not reported very neatly
* Extreme amount of digits in report due to float division

Fixes #1304
2022-12-09 17:34:27 +01:00
rdb 3f3fd74f86 dist: Use Panda loader system for converting models to .bam
Set bam_model_extensions in order to specify which formats are automatically converted to .bam

Fixes #714
2022-12-06 19:41:00 +01:00
rdb 765d76740d dist: Use manylinux2014_x86_64 for linux_x86_64 alias on Py 3.11 2022-12-06 19:37:38 +01:00
rdb 32ebe11b06 dist: Add an option to retain docstrings in compiled Python code
Fixes #1341
2022-12-06 15:21:39 +01:00
rdb ffbfdb22e0 dist: Add `prefer_discrete_gpu` option to force use of dedicated GPU
Currently only implemented on Windows.

Fixes #680
2022-12-06 15:20:57 +01:00
rdb ecbd262ac4 dist: Always use manylinux2014 for Python 3.11+, add manylinux_2_28 2022-12-06 14:43:47 +01:00
rdb 95a77e4f75 showbase: Add `do_events()` and `process_event()` snake_case aliases 2022-12-06 12:57:02 +01:00
rdb 03d411c937 dist: Workaround to disable autodiscovery in setuptools>=61.0.0
See #1394 - creates a new finalize_distribution_options entry point that makes sure that either `py_modules` or `packages` is present, otherwise setuptools  will activate its new auto-discovery system, even for custom commands that don't need setuptools' discovery system.

However, this is not a great solution, because it applies when running all setuptools commands, not just build_apps.
2022-11-19 13:14:18 +01:00
Erica M. ("Loonatic") 40618e104d chore: Remove extraneous print statement
There's no reason why this should be printed out by default. It can create a lot of spam in the output when utilizing this module.

Fixes #1383
2022-11-07 13:01:59 +01:00
rdb e0c3c8a8d9 filter: Add docstring for CommonFilters.setMSAA
[skip ci]
2022-10-25 17:51:32 +02:00
rdb a71b417aec filter: Add "MSAA" filter to CommonFilters
This provides an easy way to enable MSAA for the offscreen color buffer only without having to enable it on the main window.

When using this filter, it is important to have framebuffer-multisample turned off in Config.prc.
2022-10-25 16:26:30 +02:00
rdb 2396bd26dc deadrec: Fix compiler warning 2022-10-23 17:01:02 +02:00
rdb 00de2771fc dcparser: fix Python 3 regression unpacking uint types
Backport of d1d0dab990 (#1380)

Co-authored-by: Nat <56046513+NathaanTFM@users.noreply.github.com>
2022-10-22 10:31:26 +02:00
LD e30d88d9db showbase: Fix regression with BufferViewer in double prec build
Regression was introduced in 98314da00f

Use explicitly Vec3F in calls to addData3f to avoid crash on double precision builds

Closes #1365
2022-09-02 23:08:07 +02:00
rdb 2bd34a806d dist: Add hidden imports for scipy 2022-09-02 07:54:34 +02:00