Mitchell Stokes
8fa6026a68
deploy-ng: Play nicer with Py2
...
* ignore pyc files
* import print_function from __future__
2017-04-04 21:26:01 -07:00
Mitchell Stokes
3cb24fba91
Merge branch 'master' into deploy-ng
2017-02-20 13:46:39 -08:00
Mitchell Stokes
887278f306
deploy-ng setuptools: Change build_apps.exclude_modules to a dict and add include_modules
...
The key of both of these dictionaries is the app this affects (must
match a key in gui_apps or console_apps). A key of '*' affects all
applications.
2017-02-15 18:05:32 -08:00
Mitchell Stokes
dcb743c30d
deploy-ng: Combine build_apps files and directories options into a single copy_paths
...
copy_paths is a list of strings and two item sequences. If a copy_paths
element is a single string, it is treated as both the source and
destination paths. If the element is a sequence, the first element is
the source and the second is the destination.
NOTE: exclude_paths now uses file globs
TODO: Support globs for copy_paths
2017-02-11 18:48:56 -08:00
Mitchell Stokes
66ef8f7c2a
deploy-ng: Rename build_p3d to build_apps and bdist_p3d_archive to bdist_apps
2017-02-11 16:04:48 -08:00
rdb
9b07578d62
deploy-ng: Linux: fix symbol error with static linking, fix omission of libCg
2017-02-03 12:25:58 +01:00
Mitchell Stokes
c0f0749c21
deploy-ng: Use os.path.normpath() to cleanup directory names
2017-01-28 23:42:27 -08:00
Mitchell Stokes
bf5bddcbaf
deploy-ng: Remove previous build before making a new one
2017-01-28 23:42:03 -08:00
Mitchell Stokes
9723cb62d9
deploy-ng: Split applications list into gui_apps and console_apps dictionaries
...
The keys to these new dictionaries are the name of the application to
create and the value is the script that is the entry point for the
application. This gets rid of the need for an Application class.
2017-01-28 21:09:33 -08:00
Mitchell Stokes
159a1aa948
deploy-ng: Rename dist.build to dist.build_p3d and stop subclassing the builtin build Command
...
This also removes the need for a custom Distribution class.
2017-01-28 21:09:33 -08:00
Mitchell Stokes
d349501265
deploy-ng: Rename bdist_panda3d to bdist_p3d_archive
...
This leaves room for a later bdist_p3d_installer option.
2017-01-28 21:09:33 -08:00
Mitchell Stokes
5cfbd57d99
FreezeTool: Add encodings.cp437 and imp to startupModules
2017-01-28 21:09:33 -08:00
fireclawthefox
3318e254b8
Make the scene graph explorer occupy the empty space
...
Expand the sge to fill up the otherwise unused space below it, which is
useful for larger scenes.
2017-01-26 14:11:41 +01:00
fireclawthefox
78d14fcce3
Fixed function name
...
getChildren is expected in the MemoryExplorer and not getChildrenAsList
getChildren is also more convenient to the rest of the p3d source
2017-01-26 14:11:41 +01:00
fireclawthefox
8696dcea2c
Fixed deprecated usage of NodePath.remove in directtools
2017-01-26 14:11:41 +01:00
Mitchell Stokes
c231dd96e4
deploy-ng: Run egg2bam on egg files
...
Also adds support for running scripts based on file extensions.
2017-01-23 21:24:57 -08:00
Mitchell Stokes
eec5c997c0
deploy-ng: Use length-prefixed strings for writing modules to deploy-stub
...
This wastes less space than always using 256 characters for every module
name.
2017-01-19 19:43:11 -08:00
Mitchell Stokes
c789a3cae8
deploy-ng: Add option for extra PyPI indexes
2017-01-19 19:08:28 -08:00
Mitchell Stokes
04e4817667
deploy-ng: Add option to specify a different requirements.txt file for pip
2017-01-19 19:04:01 -08:00
Mitchell Stokes
af57eac463
deploy-ng: Add moduleSuffixes for macOS
2017-01-14 11:53:29 -08:00
Mitchell Stokes
c1d273eb40
deploy-ng: Make sure cp437 encoding is available when deploying to Windows
2017-01-10 18:51:50 -08:00
Mitchell Stokes
83c6f033e1
deploy-ng: Add libpython to list of libs to copy
2017-01-10 18:44:13 -08:00
Mitchell Stokes
db4516b796
deploy-ng: Look for correct platform suffixes for Python extension modules when cross-building
...
Note: We still need to supply suffixes for macOS. Also, Linux suffixes
are based on suffixes on my system (Arch, Python3) and will likely need
to be tweaked.
2017-01-09 20:17:27 -08:00
rdb
f8580d753a
Merge branch 'master' into deploy-ng
2017-01-09 23:53:56 +01:00
rdb
4ed199cece
Fix various compile warnings and a few code consistency issues
2017-01-09 20:36:53 +01:00
Mitchell Stokes
a03448509e
deploy-ng: Use a clean sys.path for each platform
2017-01-07 10:21:31 -08:00
Mitchell Stokes
fff8c82d7c
deploy-ng: Correctly add deploy_libs to sys.path
...
Now modulefinder will pick up on the Python stdlib C extension modules
in the panda3d whl, and no special path hacks are required.
2017-01-07 10:19:07 -08:00
Mitchell Stokes
a5bea8f8b0
makewheel/deploy-ng: Use inspect.getfile(cmath) instead of cmath.__file__ for get_python_ext_module_dir()
2017-01-05 20:35:59 -08:00
Mitchell Stokes
061a2745f9
deploy-ng: Add use_console option to Application
...
This option only affects deploying to Windows. If set to False (the default),
deploy-stubw is used. If True, deploy-stub is used.
NOTE: This is mostly untested. The only check was that it didn't break
when deploying to Linux.
2017-01-05 20:24:58 -08:00
Mitchell Stokes
2fa4ef1c7e
makewheel/deploy-ng: Try import cmath instead of _sha1 for get_python_ext_module_dir()
...
The Python2 Windows buildbot did not like _sha1.
2017-01-05 20:17:38 -08:00
Mitchell Stokes
6199d84131
deploy-ng: Grab Python stdlib C extension modules from panda3d whl
2017-01-05 19:28:22 -08:00
Mitchell Stokes
41556b07fc
deploy-ng: Use a more generic method to remove version strings from extension module names
...
This should help with stripping these strings on Windows.
2017-01-05 19:28:21 -08:00
Mitchell Stokes
fcbc71c91b
deploy-ng: Stop using freezer outside the scope of its for loop
2017-01-05 19:28:21 -08:00
Mitchell Stokes
d6aba43492
Merge branch 'master' into deploy-ng
2017-01-05 18:12:43 -08:00
rdb
31136124c7
deploy-ng: fix issues with Python 3 / Windows / Unicode, add deploy-stubw
2017-01-06 01:42:00 +01:00
rdb
53752bd376
Remove packpanda and eggcacher, don't require libpython on Linux
2017-01-05 17:22:11 +01:00
Mitchell Stokes
e85a2aa140
deploy-ng: Remove some debug prints
2017-01-04 19:30:00 -08:00
Mitchell Stokes
c51afaf0cf
deploy-ng: Support getting whl files via pip
...
The samples/asteriods/wheels directory and requirements.txt work-around
can be removed when we can grab py3 whls from PyPI.
2017-01-04 19:02:27 -08:00
Mitchell Stokes
db2cbd6e3a
deploy-ng: Add whls to sys.path instead of extracting them
2017-01-04 17:53:41 -08:00
rdb
1387f22200
FreezeTool: add missing import.
2017-01-04 20:19:04 +01:00
rdb
13c41bcf7d
FreezeTool: find modules in zip files, allow custom suffixes list
2017-01-04 20:12:56 +01:00
Mitchell Stokes
6b92d349c9
deploy-ng: Add wheel files to sys.path so modulefinder can pick up the files
2017-01-03 20:17:12 -08:00
Mitchell Stokes
5af7136aa2
deploy-ng: Support copying panda3d files from wheels instead of the current environment
...
Note: Extension modules are still coming from the current environment.
We'll need to sort this out before we get true cross-platform building.
Also, we need a proper interface for specifying platforms/wheels. At the
moment, a wheels parameter is supplied to setup() and platforms are
determined based on the wheels in this list.
2017-01-02 19:42:49 -08:00
Mitchell Stokes
6251a1cfc7
deploy-ng: Make sure the runtime is created in the build directory
...
We used to build in the current directory and copy to the build
directory, which resulted in two copies of the runtime.
2016-12-30 11:56:32 -08:00
rdb
c839dc60d6
Merge remote-tracking branch 'origin/master' into deploy-ng
2016-12-28 12:11:37 +01:00
rdb
ab5b5e7e74
Merge branch 'release/1.9.x'
2016-12-25 22:47:22 +01:00
rdb
c1d6e93166
Don't link extension modules with libpython; changes to help w/ building whls
...
This fixes compatibility issues with homebrew Python on Mac OS X.
This introduces a --no-directscripts flag to disable building packpanda and eggcacher, which require linking with libpython (which is not available on manylinux). When building a wheel, the packpanda and eggcacher modules can instead be added to console_scripts in the entry_points definition.
2016-12-21 17:57:13 +01:00
rdb
1808ad217c
Fix Python 3 error in particle sample in 1.9
2016-12-20 23:14:58 +01:00
Mitchell Stokes
74a7d4ee48
deploy-ng: Remove Python version string from the filename of copied extension modules
2016-12-18 15:02:49 -08:00
Mitchell Stokes
2923af7d44
deploy-ng: Add bdist_panda3d command to create archives for each built platform
...
Linux platforms use tar.gz and everything else (Windows, macOS) uses
zip. Later we will want to add an option to control this. Also,
bdist_panda3d currently auto-runs build. We will want an option to skip
this build step for debug/testing purposes.
2016-12-18 14:42:15 -08:00