mirror of
https://github.com/panda3d/panda3d.git
synced 2025-09-30 08:44:19 -04:00
deploy-ng: Allow users to define custom package_data_dir items
These are data (i.e., non-code) items copied for modules.
This commit is contained in:
parent
9dd29d7ac0
commit
54655240b6
@ -225,6 +225,7 @@ class build_apps(setuptools.Command):
|
||||
'libgl.so.1', 'libx11.so.6', 'libreadline.so.5', 'libncursesw.so.5',
|
||||
'libbz2.so.1', 'libz.so.1', 'liblzma.so.0', 'librt.so.1', 'libutil.so.1',
|
||||
]
|
||||
self.package_data_dirs = {}
|
||||
|
||||
# We keep track of the zip files we've opened.
|
||||
self._zip_files = {}
|
||||
@ -287,6 +288,10 @@ class build_apps(setuptools.Command):
|
||||
tmp.update(self.file_handlers)
|
||||
self.file_handlers = tmp
|
||||
|
||||
tmp = self.package_data_dirs.copy()
|
||||
tmp.update(self.package_data_dirs)
|
||||
self.package_data_dirs = tmp
|
||||
|
||||
def run(self):
|
||||
if not self.platforms:
|
||||
platforms = [p3d.PandaSystem.get_platform()]
|
||||
@ -674,7 +679,7 @@ class build_apps(setuptools.Command):
|
||||
shutil.copytree(sub_dir, target_dir)
|
||||
|
||||
# Extract any other data files from dependency packages.
|
||||
for module, datadesc in PACKAGE_DATA_DIRS.items():
|
||||
for module, datadesc in self.package_data_dirs.items():
|
||||
if module not in freezer_modules:
|
||||
continue
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user