deploy-ng: Add prints for progress in build_apps

Also, print out the platform when we fail to get a panda3d wheel.
This commit is contained in:
Mitchell Stokes 2017-11-23 12:53:56 -08:00
parent 6acbeb8176
commit 883c6555ec

View File

@ -131,11 +131,13 @@ class build_apps(distutils.core.Command):
self.build_runtimes(platform, use_wheels) self.build_runtimes(platform, use_wheels)
def download_wheels(self, platform): def download_wheels(self, platform):
""" Downloads panda3d wheels for the given platform using pip. """ Downloads wheels for the given platform using pip. This includes panda3d
These are special wheels that are expected to contain a deploy_libs wheels. These are special wheels that are expected to contain a deploy_libs
directory containing the Python runtime libraries, which will be added directory containing the Python runtime libraries, which will be added
to sys.path.""" to sys.path."""
self.announce('Gathering wheels for platform: {}'.format(platform), distutils.log.INFO)
whldir = os.path.join(self.build_base, '__whl_cache__') whldir = os.path.join(self.build_base, '__whl_cache__')
abi_tag = pip.pep425tags.get_abi_tag() abi_tag = pip.pep425tags.get_abi_tag()
@ -184,7 +186,7 @@ class build_apps(distutils.core.Command):
p3dwhl = self._get_zip_file(p3dwhlfn) p3dwhl = self._get_zip_file(p3dwhlfn)
break break
else: else:
raise RuntimeError("Missing panda3d wheel") raise RuntimeError("Missing panda3d wheel for platform: {}".format(platform))
#whlfiles = {whl: self._get_zip_file(whl) for whl in wheelpaths} #whlfiles = {whl: self._get_zip_file(whl) for whl in wheelpaths}
@ -195,6 +197,9 @@ class build_apps(distutils.core.Command):
# Add deploy_libs from panda3d whl to the path # Add deploy_libs from panda3d whl to the path
path.insert(0, os.path.join(p3dwhlfn, 'deploy_libs')) path.insert(0, os.path.join(p3dwhlfn, 'deploy_libs'))
self.announce('Building runtime for platform: {}'.format(platform), distutils.log.INFO)
# Create runtimes # Create runtimes
freezer_extras = set() freezer_extras = set()
freezer_modules = set() freezer_modules = set()
@ -317,6 +322,7 @@ class build_apps(distutils.core.Command):
self.copy_with_dependencies(source_path, target_path, search_path) self.copy_with_dependencies(source_path, target_path, search_path)
# Copy Game Files # Copy Game Files
self.announce('Copying game files for platform: {}'.format(platform), distutils.log.INFO)
ignore_copy_list = [ ignore_copy_list = [
'__pycache__', '__pycache__',
'*.pyc', '*.pyc',