21705 Commits

Author SHA1 Message Date
Mitchell Stokes
0dd8f15595 deploy-ng: Remove unused build_apps.copy_paths 2017-12-02 12:22:18 -08:00
Younguk Kim
3abf3a0c88 Add HAVE_PYTHON macro to build without python 2017-11-28 13:04:57 +09:00
rdb
27f20c80fd Don't include dlmalloc_src.cxx in interrogate
Fixes: #200
2017-11-27 18:49:28 +01:00
rdb
69b3468b2c interrogate: more improvements to seq/map wrappers
Gets rid of properties defined as both MAKE_SEQ_PROPERTY/MAKE_MAP_PROPERTY, which are just a bad idea. Instead, adds a way for map properties to define a separate "keys" interface.

Fixes: #203
2017-11-27 17:29:50 +01: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
Mitchell Stokes
305f39ba62 deploy-ng: Remove check for non-empty platforms list in build_apps::finalize_options()
This is actually a supported use-case (we fall back to the Panda3D
platform when no platforms are listed).
2017-11-26 15:34:19 -08:00
Mitchell Stokes
905b15df01 deploy-ng: Rename some options
* include_paths -> include_patterns
  * exclude_paths -> exclude_patterns
  * deploy_platforms -> platforms
2017-11-26 15:33:00 -08:00
rdb
567463eab3 makepanda: look for vorbis library without _static suffix
Fixes: #202
2017-11-26 23:42:46 +01:00
Mitchell Stokes
33fd302a8e deploy-ng: Add files to build application out of the unit tests
This will be a good way to make sure everything in the tests work under
a frozen environment.

NOTE: The application builds and runs, but no tests are collected. We
still need to figure out how we want to handle tests. Freeze them all
and modify test collection? Add py/test files to the build directory and
try to run them?
2017-11-25 17:36:02 -08:00
rdb
3be22679a4 display: also avoid getting more than 24 color bits if 0 were requested
See issue #197
2017-11-26 00:06:03 +01:00
Mitchell Stokes
fcb1d9308b Merge branch 'master' into deploy-ng 2017-11-25 14:58:25 -08:00
Mitchell Stokes
aba26bd862 Merge branch 'master' into deploy-ng 2017-11-25 14:55:47 -08:00
rdb
749b23a190 Fix support for pickling NodePaths (broken in 1b1d80c)
Fixes: #199
2017-11-25 23:12:47 +01:00
Mitchell Stokes
6fc26922de deploy-ng: Use callbacks for build_scripts 2017-11-24 20:24:10 -08:00
rdb
dac08490ee deploy-ng: implement getting executable path on Linux and macOS 2017-11-24 23:43:15 +01:00
rdb
409b241b40 Fix compile errors 2017-11-24 22:38:51 +01:00
rdb
d755de849c deploy-ng: new extensible blob format with PRC configurability 2017-11-24 21:48:18 +01:00
rdb
a7e00d0ee6 makewheel: use platform from build 2017-11-24 17:48:25 +01:00
rdb
e03c249cc5 makepanda: write target platform to file, rebuild if platform changes 2017-11-24 17:47:51 +01:00
Mitchell Stokes
883c6555ec deploy-ng: Add prints for progress in build_apps
Also, print out the platform when we fail to get a panda3d wheel.
2017-11-23 12:53:56 -08:00
Mitchell Stokes
6acbeb8176 deploy-ng: Fix error when running bdist_apps 2017-11-23 12:53:36 -08:00
Mitchell Stokes
e827120e46 deploy-ng: Do not warn about missing manylinux1 system libraries 2017-11-22 18:46:51 -08:00
Mitchell Stokes
ffdac54a0b deploy-ng: Switch copy_paths to include_paths and rename_paths 2017-11-22 18:44:07 -08:00
rdb
bec9ff8a40 loader: fix UB in try_load_file when loading file without known type 2017-11-23 01:15:44 +01:00
Mitchell Stokes
214b67c3c0 deploy-ng: Convert .egg to .egg.bam instead of .bam 2017-11-22 15:39:34 -08:00
Mitchell Stokes
949214834c deploy-ng: Fix error when build directory is missing 2017-11-22 14:02:30 -08:00
Mitchell Stokes
a8d1e9444b deploy-ng: Fix build_apps user options 2017-11-22 13:15:40 -08:00
rdb
39dba025b7 deploy-ng: fix library suffix being stripped on FreeBSD 2017-11-22 21:42:17 +01:00
rdb
82ced9900e deploy-ng: allow using setup.cfg instead of setup.py 2017-11-22 20:57:03 +01:00
rdb
80b6021d22 deploy-ng: don't warn about missing Windows system libraries 2017-11-22 20:05:50 +01:00
rdb
da2ad0f0bc deploy-ng: default to ACP if console codepage codec wasn't frozen
This is necessary because when Python is initialized, it takes the codec to use from GetConsoleCP() and GetConsoleOutputCP() without bothering to check whether the given codec is available.  However, in most cases, the console codepage will be the same as the ANSI codepage (ie. GetACP()) which is always supported by Python via the 'mbcs' codec.

So what we do is we check whether the console codepage is frozen in, and if not, we set the console codepage to the ANSI codepage and set the stdin/stdout/stderr encoding to 'mbcs'.

This is still not a perfect solution because the ACP may not be able to encode all characters that the application is printing, which would still result in unexpected errors.  Ideally, we'd pull in Python 3.6's _io._WindowsConsoleIO class, which bypasses this whole mess by directly using the wide-character Windows APIs to write to the console.
2017-11-22 19:33:17 +01:00
rdb
6ec4e5db68 deploy-ng: fix typo in copyfile call 2017-11-22 19:28:08 +01:00
rdb
37572b312c loader: try appending .bam to filename if loading doesn't find model 2017-11-22 19:27:14 +01:00
Mitchell Stokes
a2fd511db8 deploy-ng: Make use of distutils.core.Command.announce() instead of print() for verbosity levels 2017-11-21 19:02:27 -08:00
Mitchell Stokes
56ebf981df deploy-ng: Add user_options and finalize_options to build_apps 2017-11-21 18:48:42 -08:00
Mitchell Stokes
44a4d18a8e deploy-ng: Add descriptions to build_apps and bdist_apps setuptools commands 2017-11-21 18:37:17 -08:00
Mitchell Stokes
54dad81646 deploy-ng: Add RPATH to search_path when parsing ELF files 2017-11-21 14:57:15 -08:00
Mitchell Stokes
3995ea4c3b deploy-ng: Fix skipping ignored directories 2017-11-21 11:07:39 -08:00
Mitchell Stokes
37b9e256d8 deploy-ng: Raise a RuntimeError if pip is not version 9.0 or greater
This is when pip download was introduced and is required for deploy-ng.
2017-11-21 09:52:26 -08:00
rdb
46c8852eed text: fix for certain versions of HarfBuzz 2017-11-20 20:40:51 +01:00
rdb
0edac2e94a Work around gamma issue with 64-bit color depths on NVIDIA hardware 2017-11-16 23:52:12 +01:00
Younguk Kim
82d66c1928 makepanda: add support for compiling with VS 2017
This is a squashed merge of PR #153 by bluekyu with fixes by rdb.

Closes: #153
2017-11-16 17:33:46 +01:00
rdb
001804113a ShaderGenerator: make colorscale/texture blending match FFP better
A notable change is that the color scale is now applied *before* texture blending, matching the FFP.  If this breaks anything, we might want to add a configuration option for this.
This also implements the remaining combine modes, CM_dot3_rgb and CM_dot3_rgba, and fixes the broken CM_subtract mode (which currently worked the same way as CM_add).

Fixes: #189
2017-11-16 15:58:13 +01:00
fireclawthefox
936ef1953c Small extensions for the mirror demo
Add extra parameters for buffer size and clear color
Add sample code at the bottom to display usage of mirror demo

Closes: #195
2017-11-12 00:19:50 +01:00
fireclawthefox
feb36d9818 Fixed mirror demo
Set "mirror" camera to always have the same roll as the mirror
-> otherwise the model in the mirror will move unexpectedly
Set y coordinate of the mirror corners to the cameras distance
-> This fixes a crash and keep the mirrored model at correct sizer

Closes: #194
2017-11-12 00:15:58 +01:00
fireclawthefox
649a9abf8d Fix initial usage of letterbox
Set start position of letterbox frames to the hidden position

Closes: #193
2017-11-12 00:06:13 +01:00
rdb
4b4e11c085 egg-palettize: implement mirror and border-color wrap modes
Closes: #192
2017-11-11 23:59:47 +01:00
rdb
404842e70b interrogate: fix warning message caused by erroneously wrapped remap
Fixes: #191
2017-11-11 20:36:58 +01:00
rdb
3621bd64c5 tests: add unit tests for bullet bam serializability 2017-11-08 01:56:31 +01:00