direct.dist.commands¶
from direct.dist.commands import bdist_apps, build_apps, egg2bam
Extends setuptools with the build_apps
and bdist_apps
commands.
See the Distributing Panda3D Applications section of the programming manual for information on how to use these commands.
Inheritance diagram
-
class
bdist_apps
(dist, **kw)[source]¶ Bases:
setuptools.Command
-
DEFAULT_INSTALLERS
= {'manylinux1_i686': ['gztar'], 'manylinux1_x86_64': ['gztar']}¶
-
description
= 'bundle built Panda3D applications into distributable forms'¶
-
user_options
= [('build-base=', None, 'directory to build applications in'), ('requirements-path=', None, 'path to requirements.txt file for pip'), ('platforms=', 'p', 'a list of platforms to build for'), ('dist-dir=', 'd', 'directory to put final built distributions in'), ('skip-build', None, 'skip rebuilding everything (for testing/debugging)')]¶
-
-
class
build_apps
(dist, **kw)[source]¶ Bases:
setuptools.Command
-
add_dependency
(self, name, target_dir, search_path, referenced_by)[source]¶ Searches for the given DLL on the search path. If it exists, copies it to the target_dir.
-
build_runtimes
(self, platform, use_wheels)[source]¶ Builds the distributions for the given platform.
-
copy
(self, source_path, target_path)[source]¶ Copies source_path to target_path.
source_path may be located inside a .whl file.
-
copy_dependencies
(self, target_path, target_dir, search_path, referenced_by)[source]¶ Copies the dependencies of target_path into target_dir.
-
copy_with_dependencies
(self, source_path, target_path, search_path)[source]¶ Copies source_path to target_path. It also scans source_path for any dependencies, which are located along the given search_path and copied to the same directory as target_path.
source_path may be located inside a .whl file.
-
default_file_handlers
= {'.egg': <function egg2bam>}¶
-
description
= 'build Panda3D applications'¶
-
download_wheels
(self, platform)[source]¶ Downloads wheels for the given platform using pip. This includes panda3d wheels. These are special wheels that are expected to contain a deploy_libs directory containing the Python runtime libraries, which will be added to sys.path.
-
update_pe_resources
(self, appname, runtime)[source]¶ Update resources (e.g., icons) in windows PE file
-
user_options
= [('build-base=', None, 'directory to build applications in'), ('requirements-path=', None, 'path to requirements.txt file for pip'), ('platforms=', 'p', 'a list of platforms to build for')]¶
-