def build_package(path, requires, virtualenv=None, ignore=None,<EOL>extra_files=None, zipfile_name=ZIPFILE_NAME,<EOL>pyexec=None):
pkg = Package(path, zipfile_name, pyexec)<EOL>if extra_files:<EOL><INDENT>for fil in extra_files:<EOL><INDENT>pkg.extra_file(fil)<EOL><DEDENT><DEDENT>if virtualenv is not None:<EOL><INDENT>pkg.virtualenv(virtualenv)<EOL><DEDENT>pkg.requirements(requires)<EOL>pkg.build(ignore)<EOL>return pkg<EOL>
Builds the zip file and creates the package with it