def generate_package(target, source, env):
 target = str(target[0])
 sources_dir = (target + '.sources')
 suffix = env['PACKAGESUFFIX']
 if (suffix == 'zip'):
  return _generate_zip_package(target, source, sources_dir)
 else:
  return _generate_tar_package(target, source, sources_dir, suffix)

def generate_package ( target , source , env ) : target = str ( target [ 0 ] ) sources_dir = ( target + '.sources' ) suffix = env [ 'PACKAGESUFFIX' ] if ( suffix == 'zip' ) : return _generate_zip_package ( target , source , sources_dir ) else : return _generate_tar_package ( target , source , sources_dir , suffix )
generate a package containing all of the source files .