Commit Graph

7625 Commits

Author SHA1 Message Date
rdb 9d12a4c437 general: improvements to doxygen API reference:
* In C++ reference, only pick up classes defined in .h file
* Add a few excludes to C++ reference that aren't public API
* On class index pages, reduce number of columns
* Add @since for some methods/classes that are new in 1.10.0
* Fix/improve a few docstrings here and there
2019-01-23 22:24:02 +01:00
rdb fc90ca7fdf Merge branch 'release/1.10.x' 2019-01-20 17:02:15 +01:00
LD 1389ada384 setuptools: os.makedirs does not support 'exist_ok' parameter in Python2
Closes #540
2019-01-19 22:56:54 +01:00
rdb 9d0b074162 Merge branch 'release/1.10.x' 2019-01-09 23:09:17 +01:00
rdb 649372d333 Loader: work around Python 3.7 await headache caused by PEP 479
Generators can no longer raise StopIteration, and we are supposed to use "return" instead.  But, return with value inside generator is a syntax error in Python 2.

Fixes #513
2019-01-09 22:14:50 +01:00
rdb 7262f16ed8 tkwidgets: fix missing import from Valuator module
Fixes #519
2019-01-09 19:24:45 +01:00
Kyle Smith 8cf28e8d2c wx: Fixed deprecation warnings/errors
- Warnings/Errors associated with LevelEditor.
2019-01-06 18:54:08 -07:00
Kyle Smith 4f548889a8 leveleditor: Use panda3d.core 2019-01-06 18:54:08 -07:00
Kyle Smith 294dc5fc40 leveleditor: Fixed relative import for start
- Relative imports only work within modules, not in scripts (as LevelEditorStart is expected to be called directly, not imported).
2019-01-06 18:54:08 -07:00
Sam Edwards 1a17808991 Merge branch 'master' into cmake 2019-01-06 15:37:07 -07:00
rdb 2da791b9fb Audio3DManager: fix regression with setSoundVelocityAuto() 2019-01-06 09:32:41 +01:00
rdb 6e730a2e95 Audio3DManager: accept tuple in setSoundVelocity/setListenerVelocity 2019-01-06 09:32:41 +01:00
Mitchell Stokes 863e25b6e0 setuptools bdist_apps: Better support relative paths for --build-base option 2019-01-04 18:55:04 -08:00
rdb 4d6b7e96c9 directscripts: change doxygen reference color scheme 2019-01-03 16:01:10 +01:00
rdb 984f83d94b directbase: fix a stray pandac.PandaModules 2019-01-03 16:01:06 +01:00
rdb 3e22578529 New branding images for 1.10.0 2019-01-03 14:44:17 +01:00
Mitchell Stokes 3be7c63d42 setuptools build_apps: Add p3assimp to the check_plugins list
This gets rid of the runtime error message about missing Assimp.
2019-01-02 20:29:21 -08:00
Sam Edwards 211ac763d1 CMake: Update the list of pure-Python packages under direct 2018-12-29 02:55:01 -07:00
Sam Edwards 3b194c75e4 Merge branch 'master' into cmake 2018-12-28 22:15:44 -07:00
Sam Edwards bddd7c1b4b CMake: Generate/install exported target sets 2018-12-27 17:39:22 -07:00
rdb 01915a36db Merge branch 'master' into deploy-ng 2018-12-26 23:41:50 +01:00
rdb b7e7986198 deploy-ng: rewrite relative dependencies in macOS dylibs 2018-12-26 23:18:17 +01:00
rdb 3a2a29a1aa deploy-ng: catch more egg2bam errors with Python 2.7 2018-12-26 22:54:19 +01:00
rdb 6b27dae24d deploy-ng: add hidden imports for numpy on macOS 2018-12-26 22:54:01 +01:00
Mitchell Stokes 950ffd6eb8 deploy-ng: Add https://archive.panda3d.org/simple/opt as an optimized wheel index for release builds
Fixes #469
2018-12-24 12:05:39 -08:00
rdb d28e99db82 directscripts: some fixes for C++ API reference 2018-12-23 16:24:38 +01:00
rdb c0c202a423 directscripts: bring Python documentation generation up-to-date
Fixes #484
2018-12-23 15:50:00 +01:00
rdb a0a2bf59bb actor: remove commented-out code that is confusing doxygen 2018-12-23 15:42:43 +01:00
rdb 0668509791 stdpy: remove commented-out method that is confusing Doxygen 2018-12-23 15:42:31 +01:00
Mitchell Stokes 88fc3d4ca3 deploy-ng: Add --skip-build and --dist-dir options to bdist_apps
dist-dir defaults to 'dist' like sdist and bdist_wheel, which makes
bdist_apps more consistent with the rest of the Python ecosystem.
2018-12-22 14:13:40 -08:00
Mitchell Stokes ec3c2ad25a deploy-ng: Add __init__.py to direct.dist 2018-12-19 18:52:09 -08:00
rdb 92539a3107 dcparser: rebuild dcParser.{cxx,h}.prebuilt 2018-12-19 13:14:21 +01:00
rdb e4f493b872 dcparser: use vector_uchar for blobs, step towards Python 3 compat
Closes #298
2018-12-19 12:45:32 +01:00
Mitchell Stokes 587237577f deploy-ng: Move distribution related files from direct.showtutil to direct.dist 2018-12-18 20:33:12 -08:00
Mitchell Stokes d98301b8d3 deploy-ng: Add direct.particles.ParticleManagerGlobal as hidden import for direct.particles
Fixes #481
2018-12-18 19:03:08 -08:00
rdb 4c0fa1e75d Merge branch 'master' into deploy-ng 2018-12-16 22:36:45 +01:00
rdb 3a3cb01148 showbase: return Transitions fade to aspect2d, fix focus issue
This implements a slightly different solution for #311 that maintains the behaviour for the fade screen to prevent clicks from propagating to the geometry below it.

Fixes #475
Fixes #311
2018-12-16 18:43:31 +01:00
rdb b11debcf3d pfreeze: fixes for Python 3.7
See python/cpython#5432 - imp module now has the proper name
The DL_IMPORT and DL_EXPORT macros seem to have been removed.
2018-12-16 15:32:18 +01:00
Sam Edwards c50bf63aee CMake: Fix showbase build error on macOS 2018-12-11 18:28:12 -07:00
rdb 8a9cac8c49 deploy-ng: use proper patch matching for globs 2018-12-09 21:24:51 +01:00
rdb 083e3ecc74 deploy-ng: add DLL search directory for scipy wheel 2018-12-09 21:18:03 +01:00
Mitchell Stokes 09bbee8dea deploy-ng: Default platforms to a list of platforms instead of the host platform
The list is:
  * manylinux1_x86_64
  * macosx_10_6_x86_64
  * win_amd64

Of note, win32 is missing from this list. We can add it later if there
is desire.

Also of note, there is now no path to *not* using wheels. We will need
to evaluate if we want to keep this around and, if so, expose it as an
option to users.
2018-12-08 16:19:35 -08:00
Sam Edwards 99fee1a64d CMake: Assign COMPONENT and EXPORT to all targets 2018-12-06 17:48:44 -07:00
rdb 192913bf8e freezer: work around Python modulefinder bug (bpo-35376) 2018-12-02 16:26:47 +01:00
Sam Edwards 368cdc2802 CMake: Move pandac.* generation to be part of direct 2018-12-01 14:43:41 -07:00
rdb c560c502b9 Merge branch 'master' into deploy-ng 2018-12-01 22:14:01 +01:00
rdb 7ed8b01a84 Merge branch 'input-overhaul' 2018-11-30 22:04:13 +01:00
rdb d7124d4df4 Merge branch 'master' into deploy-ng 2018-11-29 12:57:49 +01:00
Sam Edwards df805bd02b Merge branch 'master' into cmake 2018-11-28 21:54:58 -07:00
Sam Edwards 8df53698f4 CMake: Add missing .h/.I files that weren't getting installed 2018-11-28 16:13:05 -07:00
rdb 97d4e32a06 general: use nassert_raise instead of nassertv(false) et al
Even a brief error message in the assertion is infinitely more useful to a user who is not at home in the source code, especially for assertions that may reasonably be triggered by honest user mistakes.
2018-11-28 17:35:20 +01:00
rdb 26fcf131c9 Merge branch 'master' into input-overhaul 2018-11-25 17:10:31 +01:00
rdb b1eec5fae0 CommonFilters: give passes a unique name for debugging/PStats 2018-11-20 00:39:47 +01:00
Mitchell Stokes 0c1572ce33 deploy-ng: Fix reference (e.g., texture) paths when using egg2bam
Fixes #277
2018-11-17 14:19:04 -08:00
Sam Edwards 6b26889e7e Merge branch 'master' into cmake 2018-11-12 15:41:42 -07:00
rdb ea832efb81 deploy-ng: fix run error with frozen attr module 2018-11-12 18:32:48 +01: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 70bfe21a63 Merge branch 'master' into input-overhaul 2018-11-06 22:10:39 +01:00
Sam Edwards a6877a6def Merge branch 'master' into cmake 2018-11-03 22:55:13 -06:00
rdb a799bcaec9 Merge branch 'master' into deploy-ng 2018-11-03 22:51:32 +01:00
Mitchell Stokes d9256755e3 deploy-ng: Allow setting build_apps command line options via bdist_apps command line options 2018-11-03 12:32:29 -07:00
Mitchell Stokes a42ebaea74 deploy-ng: Allow platforms to be specified on the command line
This makes it easier to build for one platform even if multiple
platforms are specified in setup.py/cfg. For example:

python setup.py build_apps -p win_amd64

Or, for multiple platforms:

python setup.py build_apps -p win32,win_amd64
2018-11-03 12:13:51 -07:00
rdb 5ac3cf3fc6 Eliminate C++ DConfig; replace it with a Python compatibility shim 2018-11-02 23:27:07 +01:00
Sam Edwards 62f7aabe91 Merge branch 'master' into cmake 2018-11-01 22:33:04 -06:00
rdb 14411f592e Remove obsolete .init files in configfiles directories
These look like they were part of some now-defunct Disney tool.
2018-11-01 16:26:07 +01:00
rdb 357b6d3093 Merge branch 'master' into input-overhaul 2018-10-29 23:40:46 +01:00
rdb 55371e0aad deploy-ng: fix some issues finding relative library deps in wheels
In particular, this fixes deploying with numpy for macOS, since the numpy whl has library dependencies with .. in the path.
2018-10-28 21:20:46 +01:00
rdb 305621338f deploy-ng: fix wrong platform tag for 32-bit Linux in bdist_apps 2018-10-28 20:47:44 +01: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
rdb f8b47dc14c direct: fix slowness in big games with Func(messenger.send) 2018-10-18 22:19:55 +02:00
Mitchell Stokes 18c1e242f8 deploy-ng: Include all encodings by default
For Python 3.7 on 64bit Linux, this adds about 300-400KB to built
applications.
2018-10-17 22:21:41 -07:00
Mitchell Stokes 6f311007f5 deploy-ng: Do not error if the panda3d wheel has no localtag 2018-10-17 22:08:00 -07:00
rdb ed489ac03a deploy-ng: fix egg2bam error handling on Python 2.7 2018-10-16 23:03:44 +02:00
Sam Edwards b3f1b7d40b Merge branch 'cmake' of https://github.com/treamology/panda3d into cmake
# Conflicts:
#	.travis.yml
#	direct/src/showbase/CMakeLists.txt
#	dtool/dtool_config.h.in
#	dtool/src/prc/CMakeLists.txt
#	panda/src/cocoadisplay/CMakeLists.txt
#	panda/src/express/CMakeLists.txt
#	panda/src/osxdisplay/CMakeLists.txt
2018-10-14 02:26:56 -06:00
Sam Edwards f1c5352cc1 CMake: Remove redundant target_compile_definitions(WITHIN_PANDA)
This is no longer needed since they should now propagate from
dcparser automatically.
2018-10-13 15:07:09 -06:00
Sam Edwards 90d3b29767 CMake: Sort direct/dtool/panda/pandatool subdirectories
This forces us to make sure the inter-target dependencies work
in an order-independent way.
2018-10-10 20:16:32 -06:00
Mitchell Stokes 665bdb16ea deploy-ng: Add options for using optimized wheels for panda3d
This works by adding extra index urls. Optimized wheels have local
version tags that should take precedence over non-optimized wheels. If
no optimized wheel if found for a platform, a warning is issued and a
non-optimized wheel is used instead.
2018-10-08 18:36:23 -07:00
Mitchell Stokes 90b0f501dc deply-ng: Add libedit.*.dylib to list of macOS system libraries 2018-10-07 12:31:17 -07:00
Mitchell Stokes 33e6b6bf7a deploy-ng: Setup system dependencies to ignore on Linux and macOS 2018-10-04 22:07:34 -07:00
Sam Edwards 53920e7aee CMake: Move __init__.py generation to Python.cmake
This also allows us to generate a suitable __init__.py for fixing
up PATH and/or __path__ on platforms that need it to properly
import Python extension modules.
2018-09-28 21:24:26 -06:00
Sam Edwards 2e2a8eae98 CMake: Byte-compile all .py files when building Panda
This also involves the creation a new include: Python.cmake

This file will contain utility functions for building Python
modules and installing Python packages.
2018-09-28 17:15:56 -06:00
Mitchell Stokes 3dbdb55782 deploy-ng: Initial NSIS installer support
This creates a Windows installer. Still TODO:

  * Dealing with creating shortcuts
  * Add license information to installers
  * Possibly tweak various names (e.g., display names, version numbers,
  etc.)
  * Application does not show up in Windows 7 list of programs in the
  control panel (still has an uninstaller in the start menu)
  * Add all built binaries to Start Menu
2018-09-24 19:51:38 -07:00
Sam Edwards e917c54433 Merge branch 'master' into cmake 2018-09-22 15:55:59 -06:00
Sam Edwards 1520d712d4 CMake: Remove target_use_packages
Instead, let's use a PKG::PKGNAME interface library, which simplifies
the linking and also allows us to use imported libraries from
find_package in the future.
2018-09-21 10:17:05 -06:00
rdb 338b428e65 Merge branch 'master' into deploy-ng 2018-09-17 17:37:07 +02:00
rdb 76365f3ed1 showbase: make input device binding explicit, not automatic 2018-09-16 20:22:40 +02:00
rdb e30b597926 Merge branch 'master' into input-overhaul 2018-09-16 12:28:22 +02:00
rdb 822f89fadb dgui: accept arg in setText, setImage, setGeom, also add clearers
This enables the "setters" to behave in a way that people expect setters to behave.  Since `setText(None)` now does not behave expectedly, a `clearText()` has also been added to remove the text.

Closes #385
2018-09-13 21:14:04 +02:00
Mitchell Stokes a2cb552375 deploy-ng: Only pass optimize=2 to compile() if the Python version is >=3.2
Fixes #388
2018-09-10 20:04:08 -07:00
jspam a333353af6 Make Loader.loadSound() accept a MovieAudio instance as soundPath
This functionality seems to have inadvertently been removed by
refactoring commit 23bf9ea5.

Closes #383
2018-09-09 20:22:51 +02:00
Mitchell Stokes 54655240b6 deploy-ng: Allow users to define custom package_data_dir items
These are data (i.e., non-code) items copied for modules.
2018-09-07 20:13:07 -07:00
Mitchell Stokes 9dd29d7ac0 deploy-ng: Improve error reporting for egg2bam 2018-09-07 19:59:14 -07:00
Mitchell Stokes 1983382b3b deploy-ng: Improve file_handler API
User-defined file handlers are added to a dictionary of default handlers
(just has egg2bam for *.egg files for now). Any user-provided file
handlers for a given file type will overwrite default file handlers.

This allows users to define file handlers without having to re-add
egg2bam to the list.
2018-09-07 19:57:14 -07:00
Sam Edwards 208ecd6708 Merge branch 'master' into cmake 2018-09-02 16:06:41 -06:00
Sam Edwards fa1e1a2e63 CMake: Tidy up installation directory
Don't install "object-Configuration/" directories when
using metalibs, and also put .dll files in bin/ on Windows.
2018-09-01 11:07:55 -06:00
Sam Edwards 4695557a5d general: Don't require BUILDING_* for static builds 2018-08-31 23:54:32 -06:00
rdb 1d6c3f6486 Merge branch 'master' into input-overhaul 2018-08-26 19:03:21 +02:00
rdb 27dbad6fd9 leveleditor: add missing import 2018-08-26 14:04:19 +02:00