Commit Graph

7291 Commits

Author SHA1 Message Date
rdb f535a641e4 Merge branch 'master' into deploy-ng 2018-02-27 20:53:28 +01:00
rdb b62435a373 general: remove all uses of deprecated upcastTo*() methods
These methods have not been needed for a very long time, so we should not encourage their use.
2018-02-27 15:02:49 +01:00
rdb c6f4979069 deploy-ng: fix unicode modules with encoding on Python 2 2018-02-24 21:38:39 +01:00
rdb 94b5fa1e90 deploy-ng: fix inclusion of additional python DLLs (eg. sqlite, tk)
Fixes: #239
2018-02-24 21:37:23 +01:00
Mitchell Stokes 5b4041bf23 deploy-ng: Fix handling of unicode Python files for Python 2 2018-02-24 11:04:40 -08:00
Mitchell Stokes 6f17bc9224 deploy-ng: Remove debug print 2018-02-24 11:04:01 -08:00
Sam Edwards b72d1c198f distributed: Fix the import test (and syntax on Python 3) 2018-02-23 19:52:48 -07:00
Sam Edwards f76b8a6ad8 distributed: Replace the OTP protocol format with Astron's
Again, all this does is affect the 4-years-disused OTP system, leaving
the CMU system entirely untouched.

This changes the packet formatting in several of distributed's helper
classes.
2018-02-23 16:45:50 -07:00
Sam Edwards 167c6dcafa distributed: Change the message numbers to match Astron's
I imagine very few Panda3D users depend on the message numbers having
particular values. The ones removed belonged to Disney's OTP system,
which hasn't been used by anybody in over 4 years.

At any rate, old code should continue to work, just at the cost of
compatibility between clients and servers running different P3D versions.
2018-02-23 16:35:50 -07:00
Sam Edwards 97368ec321 distributed: Make a few slight cleanliness changes
I brought all of these over from the Astron fork
2018-02-23 15:55:30 -07:00
Sam Edwards aaeb925e84 directtools: Fix typo in DirectSelection 2018-02-23 15:50:50 -07:00
rdb aa90b7b0c0 showbase: disable track-gui-items by default, remove want-e3-hacks 2018-02-23 22:26:27 +01:00
rdb e6c2d3b609 showbase: allow DirectGui elements to be created before ShowBase
This is done by precreating aspect2d inside ShowBaseGlobal.
2018-02-23 22:15:34 +01:00
rdb 0cf605ce7d showbase: move run() and __dev__ to ShowBaseGlobal
Also remove ShowBaseGlobal notify category, it doesn't really add anything
2018-02-23 21:26:49 +01:00
rdb 15dd70f254 deploy-ng: fix regression in Python 2 introduced by 8f919b7 2018-02-13 11:23:06 +01:00
Mitchell Stokes 846dc9c97b deploy-ng: Add hidden imports for keyring.backends 2018-02-12 22:21:44 -08:00
Mitchell Stokes 0c3c6c36bf deploy-ng: Fix loading submodules for hidden imports
Fixes #242
2018-02-12 22:21:14 -08:00
Mitchell Stokes 8f919b7e40 deploy-ng: Fix to handle utf-8 Python source files on all systems
NOTE: This only works for Python 3
2018-02-12 17:52:45 -08:00
Sam Edwards e15cea4331 general: Remove more unnecessary +x UNIX modes 2018-02-07 11:29:48 -07:00
Mitchell Stokes 73fd10281b deploy-ng: Add build directory to exclude patterns 2018-02-04 19:16:58 -08:00
fireclawthefox f2cf391a2e gui: add simple way to enable overflow in DirectEntry
Closes #236
2018-01-24 19:17:50 +01:00
rdb bdb53b8cb5 showbase: fixes for aspect-ratio adjustment of pixel2d(p) 2018-01-05 19:49:14 +01:00
rdb 27fb1a4a9e showbase: fix aspect ratio calculation
backs out part of 7a46b2ca60, from PR #204
2018-01-05 15:00:21 +01:00
rdb c1679472cd actor: change parent of exposed joint to character
This prevents exposed joints from not being affected by a transform directly on the Character node.  See panda3d/panda3d#221 for more details.

Fixes #221
2018-01-05 14:39:39 +01:00
rdb 47c7ff42cc CommonFilters: better handle failure condition when shaders not supported 2018-01-05 14:15:22 +01:00
rdb 4f50f6abd0 showbase: use ShowBaseGlobal module as alternative to builtin scope
Allows accessing `base` object and several other builtins from the ShowBaseGlobal module.

It doesn't bother with builtins that are available as members of the base object such as `render` and `loader`.

Fixes #182
2018-01-03 14:25:27 +01:00
rdb 588d41ed7e Fix assorted compiler warnings 2017-12-24 15:12:58 +01:00
rdb 6025bf0a8e deploy-ng: fix error on Linux 2017-12-22 21:22:30 +01:00
rdb 2c35d7a8e9 deploy-ng: changes to make macOS app bundles work correctly 2017-12-21 15:49:16 +01:00
rdb c911ba8059 Merge branch 'master' of github.com:panda3d/panda3d into deploy-ng 2017-12-21 15:10:53 +01:00
rdb 4e1fc27d6b deploy-ng: fix module duplication in build dir (observed on macOS) 2017-12-21 15:09:44 +01:00
rdb 5b2f3bc9bf deploy-ng: fix issue locating blobinfo symbol on Py3+Windows 2017-12-21 14:10:34 +01:00
rdb ed5e5386b9 AsyncFuture improvements, incl. support for gathering futures 2017-12-21 14:07:01 +01:00
rdb 58917e6746 deploy-ng: fix failure to include libpython (particularly on macOS) 2017-12-21 13:15:45 +01:00
rdb f703fd51ed deploy-ng: allow deploy-stub to set MAIN_DIR via blobinfo 2017-12-21 12:25:17 +01:00
rdb c6401c45c1 deploy-ng: support macOS universal binaries 2017-12-21 12:20:19 +01:00
Mitchell Stokes 55aaa4da2b deploy-ng: Add hidden import hook for datetime 2017-12-16 23:57:15 -08:00
Mitchell Stokes 6a630c4d62 deploy-ng: Add hidden import hook for xml.etree.cElementTree 2017-12-16 23:51:54 -08:00
Mitchell Stokes ccca2f39cb deploy-ng: Fix hidden import logic
A chunk of code was left out of the previous commit.
2017-12-16 23:50:51 -08:00
deflected e4a817b469 Loader: Fixed crash when canceling async loading of model
- Clean up the _loader after we clean up the requests,
        not before that

Signed-off-by: deflected <deflected@users.noreply.github.com>
2017-12-13 13:42:29 +02:00
Mitchell Stokes e504a49380 deploy-ng: Add initial support for creating .app bundles for macOS
The actual bundling is currently commented out in the bottom of
build_apps.build_runtimes(). Generating the .app was tested from a Linux
host and looks mostly correct upon a visual inspection of the contents.
However, no testing was done for actually running the .app on macOS,
which is why it is commented out. This was also not tested on Python 2.

There are also some TODO comments that need to be addressed.
2017-12-05 21:13:03 -08:00
Mitchell Stokes e4730dca00 deploy-ng: Error if both gui_apps and console_apps is empty 2017-12-05 21:10:10 -08:00
deflected bdd53d60fc ShowBase: Fixed crash when want-render2dp is False
- Fixed crash in ShowBase when want-render2dp setting
        is set to 0(False).

Signed-off-by: deflected <deflected@users.noreply.github.com>
2017-12-04 22:46:30 +01:00
deflected 7a46b2ca60 ShowBase: Minor fixes over aspect ratio and size calculations
- Do not take into accound SBS if it is not enabled
        - Always return value for getSize()
        - Properly handle SBS for window-events
        - Redo positioning of aspect2d(p) markers exactly as
        they are created when adjusting aspect ratio

Signed-off-by: deflected <deflected@users.noreply.github.com>
2017-12-04 22:46:22 +01:00
rdb 2e20a0f16e Implement awaitable thread-safe future for async operations
This introduces AsyncFuture as a new base class of AsyncTask.  It's modelled after asyncio's Future class, except that it is thread-safe and you can use result() to block the current thread waiting for the future to finish (of course this is not necessary for use with coroutines).

AsyncFuture should be used for any operation that finishes in the future, to get the benefit of awaitability within coroutines as well as a standard interface for querying status and results of the operation as well as cancelling it.  As such, it's been implemented in various places, including texture.prepare() and win.trigger_copy().

Note that AsyncFuture is intended to be used *once*; it cannot be used more than once.  As an example of how this works, tex.prepare() will return the same future as long as the prepare isn't complete, but when it is done, subsequent calls to tex.prepare() will return a new future.
2017-12-04 22:25:28 +01:00
Mitchell Stokes 6105f386c0 deploy-ng: Add a mechanism to FreezeTool for "hidden" imports
For now we have hooks for PyTest and pkg_resources.
2017-12-03 17:24:53 -08:00
Mitchell Stokes cd102e6f09 deploy-ng: Add libbz2, libz, and liblzma to the manylinux1 ignore list 2017-12-03 17:24:53 -08:00
Mitchell Stokes 0dd8f15595 deploy-ng: Remove unused build_apps.copy_paths 2017-12-02 12:22:18 -08:00
Mitchell Stokes 08e18ce802 deploy-ng: Rename build_scripts to file_handlers 2017-11-26 15:50:40 -08:00
Mitchell Stokes 8f6d75e017 deploy-ng: Pass build_apps commands to build_scripts
This allows build_scripts to access configuration.
2017-11-26 15:37:37 -08:00