|
Panda3D
|
Public Member Functions | |
| add_dependency (self, name, target_dir, search_path, referenced_by) | |
| build_runtimes (self, platform, use_wheels) | |
| bundle_macos_app (self, builddir) | |
| copy (self, source_path, target_path) | |
| copy_dependencies (self, target_path, target_dir, search_path, referenced_by) | |
| copy_with_dependencies (self, source_path, target_path, search_path) | |
| download_wheels (self, platform) | |
| expand_path (self, path, platform) | |
| finalize_options (self) | |
| initialize_options (self) | |
| run (self) | |
| update_pe_resources (self, appname, runtime) | |
Public Attributes | |
| bool | bam_embed_textures = False |
| list | bam_model_extensions = [] |
| build_base = os.path.join(os.getcwd(), 'build') | |
| dict | console_apps = {} |
| str | default_prc_dir = None |
| bool | embed_prc_data = True |
| list | exclude_dependencies |
| dict | exclude_modules = {} |
| list | exclude_patterns = [] |
| str | extra_prc_data = '' |
| list | extra_prc_files = [] |
| dict | file_handlers = {} |
| dict | gui_apps = {} |
| dict | icon_objects = {} |
| dict | icons = {} |
| dict | include_modules = {} |
| list | include_patterns = [] |
| bool | log_append = False |
| log_filename = None | |
| bool | log_filename_strftime = False |
| macos_main_app = None | |
| str | optimized_wheel_index = '' |
| dict | package_data_dirs = {} |
| list | platforms |
| list | plugins = [] |
| bool | prefer_discrete_gpu = False |
| list | pypi_extra_indexes |
| dict | rename_paths = {} |
| requirements_path = os.path.join(os.getcwd(), 'requirements.txt') | |
| bool | strip_docstrings = True |
| bool | use_optimized_wheels = True |
Static Public Attributes | |
| dict | default_file_handlers |
| str | description = 'build Panda3D applications' |
| list | user_options |
Protected Member Functions | |
| _get_zip_file (self, path) | |
| _read_dependencies_elf (self, elf, origin, search_path) | |
| _read_dependencies_fat (self, fp, is_64bit, flatten=False) | |
| _read_dependencies_macho (self, fp, endian, flatten=False) | |
Protected Attributes | |
| dict | _zip_files = {} |
|
protected |
|
protected |
Having read the first 4 bytes of the ELF file, fetches the dependent libraries and returns those as a list.
|
protected |
|
protected |
Having read the first 4 bytes of the Mach-O file, fetches the dependent libraries and returns those as a list. If flatten is True, if the dependencies contain paths like @loader_path/../.dylibs/libsomething.dylib, it will rewrite them to instead contain @loader_path/libsomething.dylib if possible. This requires the file pointer to be opened in rb+ mode.
| add_dependency | ( | self, | |
| name, | |||
| target_dir, | |||
| search_path, | |||
| referenced_by ) |
Searches for the given DLL on the search path. If it exists, copies it to the target_dir.
| build_runtimes | ( | self, | |
| platform, | |||
| use_wheels ) |
Builds the distributions for the given platform.
| bundle_macos_app | ( | self, | |
| builddir ) |
Bundle built runtime into a .app for macOS
| copy | ( | self, | |
| source_path, | |||
| target_path ) |
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 ) |
Copies the dependencies of target_path into target_dir.
| copy_with_dependencies | ( | self, | |
| source_path, | |||
| target_path, | |||
| search_path ) |
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.
| download_wheels | ( | self, | |
| platform ) |
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.
| expand_path | ( | self, | |
| path, | |||
| platform ) |
| finalize_options | ( | self | ) |
| initialize_options | ( | self | ) |
| run | ( | self | ) |
| update_pe_resources | ( | self, | |
| appname, | |||
| runtime ) |
Update resources (e.g., icons) in windows PE file
|
protected |
| bool bam_embed_textures = False |
| list bam_model_extensions = [] |
| build_base = os.path.join(os.getcwd(), 'build') |
| dict console_apps = {} |
|
static |
| default_prc_dir = None |
|
static |
| bool embed_prc_data = True |
| list exclude_dependencies |
| dict exclude_modules = {} |
| list exclude_patterns = [] |
| str extra_prc_data = '' |
| list extra_prc_files = [] |
| file_handlers = {} |
| dict gui_apps = {} |
| dict icon_objects = {} |
| dict icons = {} |
| dict include_modules = {} |
| list include_patterns = [] |
| log_append = False |
| log_filename = None |
| log_filename_strftime = False |
| macos_main_app = None |
| optimized_wheel_index = '' |
| package_data_dirs = {} |
| platforms |
| list plugins = [] |
| bool prefer_discrete_gpu = False |
| list pypi_extra_indexes |
| dict rename_paths = {} |
| requirements_path = os.path.join(os.getcwd(), 'requirements.txt') |
| bool strip_docstrings = True |
| bool use_optimized_wheels = True |
|
static |