21705 Commits

Author SHA1 Message Date
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
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
Mitchell Stokes
73fd10281b deploy-ng: Add build directory to exclude patterns 2018-02-04 19:16:58 -08: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
a512c44366 deploy-ng: fix Windows codec error when console codepage is 0 2017-12-21 14:09:09 +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
rdb
c1fb44ad69 makewheel: fix binary data being doubled 2017-12-21 11:39:19 +01:00
rdb
ef7f856c46 cocoa: support windowless offscreen rendering on macOS
Fixes: #183
2017-12-20 14:27:08 +01:00
rdb
f82a940878 glgsg: fix shader version in macOS 3.2+ context 2017-12-20 14:16:05 +01:00
rdb
f0b21ee969 Support old Python 2 buffer protocol in PTA and Texture ram_image
This enables passing eg. str and array.array objects in Python 2
2017-12-20 01:23:26 +01:00
rdb
096d54de00 Add double-precision versions of encode_sRGB_uchar 2017-12-19 23:44:15 +01:00
rdb
061e0c4862 cocoa: allow getting a GL 3.2+ context on macOS 10.7+ using gl-version 2017-12-19 23:38:45 +01:00
rdb
6faaabe034 makepanda: fix build error with maya2008 on macOS 2017-12-19 23:37:36 +01:00
rdb
9dcfcbf5fa texture: support store() on more component types (incl. sRGB)
This changes behaviour for sRGB textures, which weren't previously converting to the correct color space.

Also add unit tests for storing to PNMImage.

Closes: #212
2017-12-19 20:02:49 +01:00
rdb
e9a50c8898 texture: fix get_clear_data() return type, make it work with sRGB 2017-12-19 19:27:36 +01:00
rdb
e4e24eee56 glgsg: use T_float when downloading 24-bit depth textures
This is to match behavior with previous Panda3D versions.  See #212
2017-12-19 18:44:44 +01:00
rdb
348b1c344d texture: support uint/float/half/sRGB textures in TexturePeeker 2017-12-19 18:44:18 +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
sean5470
9e8060d402 Moved MAX plugin line to MAX instead of Maya section
Moved the search line for .ms files from the Maya section, to the MAX section where it should be.

Closes: #214
2017-12-16 21:05:57 +01:00
rdb
29f50be15e Fix bug: copy-to-ram depth texture binding gets format set to RGB
This was a regression introduced by be8f4de33789cbb96551bb34b1ba85e7134d1e73

Fixes: #212
2017-12-16 21:03:08 +01: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
rdb
9bfc425b75 Fix assertion when rendering bounding volumes (broken since 6f8b379) 2017-12-12 23:27:51 +01:00
rdb
193e4b5f59 interrogate: clean py_panda.h; use macros to access Dtool_PyInstDef 2017-12-12 23:03:38 +01:00
rdb
18678214ae interrogate: pass "args" tuple to function that takes PyObject *args 2017-12-12 16:20:59 +01:00
rdb
3e83f8c65e Fix priority argument ignored in NodePath::set_shader_input 2017-12-12 15:25:21 +01: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
rdb
46189dc1bf Compile fix for macOS build
[skip ci]
2017-12-04 22:52:23 +01: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
16255d528e deploy-ng: Lock tests app to pytest 3.2.0
pytest 3.3.0 brings in a pluggy dependency that cannot be satisfied with
wheels.
2017-12-03 17:24:53 -08:00
rdb
f54b8be676 Separate out Python compat hacks from py_panda.h into py_compat.h 2017-12-03 15:48:02 +01:00
Mitchell Stokes
d90e59ca2d Merge branch 'master' into deploy-ng 2017-12-02 18:36:47 -08:00