def _generate_zip_package(target, sources, sources_dir):
 zip = zipfile.ZipFile(target, 'w', zipfile.ZIP_DEFLATED)
 manifest = _archive_package_sources(zip.write, sources, sources_dir)
 zip.writestr(_PACKAGE_MANIFEST, ('\n'.join(manifest) + '\n'))
 zip.close()
 return None

def _generate_zip_package ( target , sources , sources_dir ) : zip = zipfile . ZipFile ( target , 'w' , zipfile . ZIP_DEFLATED ) manifest = _archive_package_sources ( zip . write , sources , sources_dir ) zip . writestr ( _PACKAGE_MANIFEST , ( '\n' . join ( manifest ) + '\n' ) ) zip . close ( ) return None
generate a zip archive containing all of the source files .