Commit Graph

7325 Commits

Author SHA1 Message Date
Mitchell Stokes a17751adcf deploy-ng: Avoid interactive prompt on packages fetched via a VCS 2018-06-26 19:12:16 -07:00
Mitchell Stokes ca812b890c deploy-ng: Add initial support for cefpython3 2018-06-25 21:14:00 -07:00
Mitchell Stokes dd9a7f31ec deploy-ng: Ensure sys.frozen is defined in frozen applications 2018-06-25 19:50:01 -07:00
Mitchell Stokes 8c5c2c3c7d deploy-ng: Add package data hooks for jsonschema 2018-06-25 18:20:41 -07:00
Mitchell Stokes ffe776b8f9 deploy-ng: Support pktutil.get_data() on Python 3
Python 2 should already work.
2018-06-25 18:20:41 -07:00
Mitchell Stokes 0253a7a29f deploy-ng: Remove dist.setup()
This was a hack used by installation methods that did not support
registering new commands correctly. The commands should now work
regardless of installation method (wheel, deb, NSIS installer, etc.).
2018-06-25 18:20:41 -07:00
Mitchell Stokes d9885e4f1b deploy-ng:Fix parsing bdist_apps.installers from setup.cfg 2018-06-25 18:20:41 -07:00
rdb b6f2919420 deploy-ng: make Tkinter work for Windows non-cross-builds
This is only a temporary solution, since this only supports one platform.  We may have to pack the .tcl files into the panda3d .whl archive.
2018-05-13 23:39:30 +02:00
rdb d00109452a deploy-ng: set __file__ for all frozen modules (using import hooks)
Many thirdparty libraries rely on __file__ being set properly, for example to be able to locate data files, so it is easiest to just set this to something remotely sensible (like the executable path).
2018-05-13 23:37:40 +02:00
rdb 5322811e08 deploy-ng: be lenient when processing DLLs with invalid codepage 2018-05-13 23:35:52 +02:00
rdb ef69e8935f freezer: add mechanism for overriding modules with custom code 2018-05-13 23:35:00 +02:00
rdb f34d4c4851 deploy-ng: add hidden imports for matplotlib 2018-05-13 23:32:46 +02:00
rdb 126f4bc418 deploy-ng: copy over data directories for matplotlib 2018-05-13 23:30:14 +02:00
rdb 229e1a1b1f deploy-ng: fix building a Linux build from Python 2.7 on Windows 2018-05-13 23:26:55 +02:00
rdb e292fedd91 deploy-ng: add .libs directory in .whl to search path
This seems to be a convention imposed by auditwheel and used by numpy.
2018-05-13 22:56:44 +02:00
rdb ea351da50c deploy-ng: fix issue with irrelevant wheels in cache dir being used
This is still not a perfect solution, since eg. the wrong version of a package may still be used if older versions are still in the __whl_cache__ directory.  We may want to look into using pip to resolve the package versions, or do something clever such as automatically remove cached wheels if a newer version of the same package was downloaded.
2018-05-13 22:56:11 +02:00
Mitchell Stokes bf1b486e5a Merge branch 'master' into deploy-ng 2018-05-06 11:30:01 -07:00
Mitchell Stokes ebe2588a50 Merge branch 'master' into deploy-ng 2018-05-06 11:21:13 -07:00
Mitchell Stokes 7eeb416765 deploy-ng: Remove debug print 2018-05-06 10:24:55 -07:00
Mitchell Stokes 081ceb4329 deploy-ng: Fix parsing platforms from setup.cfg 2018-05-06 09:50:17 -07:00
Mitchell Stokes 82d32e1f14 deploy-ng: Fix using lists in dictionaries when using setup.cfg 2018-05-06 09:47:02 -07:00
rdb 71eee6df3f showbase: make iris/fade/letterbox transitions awaitable
This allows using a coroutine to build up a more complex sequence including transitions (eg. scripted cutscene), as well as provide a standard way to register callbacks upon completion of the transition.
2018-05-05 23:05:50 +02:00
rdb cf58de4d04 showbase: make base.movie() awaitable (by returning a future) 2018-05-05 23:02:11 +02:00
rdb 11e21af52c showbase: fix iris/fade transitions for extreme aspect ratios
Fixes #311
2018-05-05 22:08:52 +02:00
Mitchell Stokes 52360dc10c deploy-ng: Add bztar and xztar installers 2018-04-30 20:31:54 -07:00
Mitchell Stokes 7f974865d5 deploy-ng: Subclass from setuptools.Command instead of distutils.core.Command 2018-04-30 20:27:31 -07:00
Mitchell Stokes 4b9315ef43 deploy-ng: Fix running against pip 10.0+ 2018-04-30 18:50:42 -07:00
rdb f986f8de1b showbase: add back clampScalar and PriorityCallbacks to PythonUtil
These were removed by 88dbb31daa under the assumption that they were not used, but it has recently come to my attention that there is still code out there that uses these.

PriorityCallbacks has been updated to be compatible with Python 3 by only comparing the priority, rather than the (priority, callback) tuple. This also has the side-effect of ditching the bisect dependency.

Also moves testing code from the source to the unit tests.
2018-04-21 11:43:46 +02:00
rdb f47857550f pefile: fix get_export_address for ordinals > 0
[skip ci]
2018-04-10 12:57:41 +02:00
rdb 742c143a01 deploy-ng: support logging via log_filename (and log_append) setting 2018-04-08 17:57:48 +02:00
rdb 023669c8c2 deploy-ng: fix absolute exclude patterns, "build" directory exclusion 2018-04-08 17:09:54 +02:00
rdb b0cece7faf Merge branch 'master' into deploy-ng 2018-04-08 15:44:32 +02:00
rdb e9ae7dcc40 Use vector_uchar instead of string for binary network/file data
This distinction allows us to better support Python 3, since it will raise exceptions when trying to put arbitrary binary data in a str object.

This also adds some convenience functions for efficiently initializing a Datagram or PTA_uchar from a vector_uchar.
2018-04-02 23:17:14 +02:00
Tohka 0b1ad67e13 distributed: Fix DC file reading regression (#295) 2018-03-31 04:01:35 -06:00
Mitchell Stokes 01ae235bfb deploy-ng: Change default model-cache-dir on deployed applications
We replace panda3d in the model-cache-dir ConfigVariable with the name
from setup.py.
2018-03-30 13:42:40 -07:00
Sebastian Hoffmann 78377ca10c Cursor after newline character appears on beginning of next line.
DirectEntry.updateNumLines updates text geom.
DirectEntry API less inadequate.

Closes #257
2018-03-30 20:17:31 +02:00
Sam Edwards 4eb250cb87 dcparser: Write ranged-blob parameters correctly 2018-03-25 22:03:55 -06:00
Sam Edwards 9dd37e9dbc general: Add guards to ensure proper BUILDING_ macros defined
This is designed to sanity-check the buildsystem, ensuring that the
expected BUILDING_ macros are defined at the expected time. It
also helps catch cases where the wrong BUILDING_/EXPCL_ macros
are used.
2018-03-25 13:17:52 -06:00
Sam Edwards f231ba4cd7 directbase: Introduce BUILDING_ defines for each component
Ditto everything before, but for direct.
2018-03-25 13:17:52 -06:00
Mitchell Stokes b91cb655c3 deploy-ng: Expose default_prc_dir as a build_apps option
If not set, this defaults to '<auto>etc' if embed_prc_data is False or
'' (no default PRC dir) if embed_prc_data is True.
2018-03-22 18:38:13 -07:00
Mitchell Stokes 164ef3fa4b deploy-ng: Add options for user-supplied PRC data 2018-03-21 18:28:42 -07:00
Mitchell Stokes 4d47603e87 deploy-ng: Allow embedding PRC data
Also parse PRC data and remove lines for plugins that are not included
in the build.
2018-03-18 16:49:37 -07:00
Mitchell Stokes 7a7eca25ee deploy-ng: Only add Python files that were frozen to the ignore list
This allows copying over unfrozen Python files by adding modules to the
exclude_modules dictionary (behaves like include_modules) and then
making sure the Python file matches a pattern in the include_patterns
list.
2018-03-12 21:29:39 -07:00
rdb aebdefcf60 Merge branch 'master' into deploy-ng 2018-03-11 23:01:10 +01:00
Michael Wass b10ee32752 direct: Fix some more NameErrors
Closes #274
2018-03-08 11:44:04 +01:00
rdb b0b32b9d6a direct: fix Python 3 support in Pmw-based tools
Fixes #276
2018-03-08 11:21:14 +01:00
Michael Wass 89799bc024 direct: Fix some NameErrors
Squashed merge of GitHub PR #273
2018-03-05 18:32:27 -07:00
Sam Edwards ac8417ffdf distributed: `type(x) == types.FooType` -> `inspect.isfoo(x)`
This is more compatible across Python 2 vs. 3.

[skip ci]
2018-03-04 15:28:39 -07:00
rdb c8da53a81f deploy-ng: fix regression with builtin modules not being added
This happens only when the system Python has the module built-in (eg. on Ubuntu where most modules are builtin) but deploy-ng doesn't.

Regression was introduced by 94b5fa1e90

Fixes #264
2018-03-01 22:02:58 +01:00
Mitchell Stokes fcacc3c2be deploy-ng: librt.so.1 to libutil.so.1 to exclude_dependencies 2018-02-27 18:37:03 -08:00