

def make_release(pkg_path, output_path):
    with qisys.sh.TempDir() as tmp_path:
        qisys.archive.extract(pkg_path, tmp_path, algo='zip', strict_mode=False)
        _compile_python_files(tmp_path)
        _update_python_services(tmp_path)
        qisys.archive.compress(tmp_path, output=output_path, flat=True, display_progress=True)
    ui.info(ui.green, 'Package compiled to', ui.reset, ui.bold, output_path)

dataset/ETHPy150Open aldebaran/qibuild/python/qipkg/release.py make_release/original