mirror of
https://github.com/panda3d/panda3d.git
synced 2025-10-03 02:15:43 -04:00
deploy-ng: Rename build_scripts to file_handlers
This commit is contained in:
parent
8f6d75e017
commit
08e18ce802
@ -54,7 +54,7 @@ class build_apps(distutils.core.Command):
|
|||||||
self.plugins = []
|
self.plugins = []
|
||||||
self.requirements_path = './requirements.txt'
|
self.requirements_path = './requirements.txt'
|
||||||
self.pypi_extra_indexes = []
|
self.pypi_extra_indexes = []
|
||||||
self.build_callbacks= {
|
self.file_handlers= {
|
||||||
'.egg': egg2bam,
|
'.egg': egg2bam,
|
||||||
}
|
}
|
||||||
self.exclude_dependencies = [
|
self.exclude_dependencies = [
|
||||||
@ -382,10 +382,10 @@ class build_apps(distutils.core.Command):
|
|||||||
if not ext:
|
if not ext:
|
||||||
ext = os.path.basename(src)
|
ext = os.path.basename(src)
|
||||||
|
|
||||||
if ext in self.build_scripts:
|
if ext in self.file_handlers:
|
||||||
buildscript = self.build_scripts[ext]
|
buildscript = self.file_handlers[ext]
|
||||||
self.announce('running {} on src ({})'.format(buildscript.__name__, src))
|
self.announce('running {} on src ({})'.format(buildscript.__name__, src))
|
||||||
dst = self.build_scripts[ext](self, src, dst)
|
dst = self.file_handlers[ext](self, src, dst)
|
||||||
else:
|
else:
|
||||||
self.announce('copying {0} -> {1}'.format(src, dst))
|
self.announce('copying {0} -> {1}'.format(src, dst))
|
||||||
shutil.copyfile(src, dst)
|
shutil.copyfile(src, dst)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user