sugar3.activity.bundlebuilder module¶
The bundle builder is a build system for Sugar activities. Usually, it is setup by creating a setup.py file in the project with the following:
#!/usr/bin/env python
from sugar3.activity import bundlebuilder
bundlebuilder.start()
- class sugar3.activity.bundlebuilder.Builder(config, no_fail=False)¶
Bases:
object
- build()¶
- build_locale()¶
- get_locale_files()¶
- class sugar3.activity.bundlebuilder.Config(source_dir, dist_dir=None, dist_name=None)¶
Bases:
object
- update()¶
- class sugar3.activity.bundlebuilder.Installer(builder)¶
Bases:
sugar3.activity.bundlebuilder.Packager
- install(destdir, prefix, install_mime=True, install_desktop_file=True)¶
- class sugar3.activity.bundlebuilder.SourcePackager(config)¶
Bases:
sugar3.activity.bundlebuilder.Packager
- package()¶
- class sugar3.activity.bundlebuilder.XOPackager(builder)¶
Bases:
sugar3.activity.bundlebuilder.Packager
- package()¶
- sugar3.activity.bundlebuilder.cmd_build(config, options)¶
Build generated files
- sugar3.activity.bundlebuilder.cmd_check(config, options)¶
Run tests for the activity
- sugar3.activity.bundlebuilder.cmd_dev(config, options)¶
Setup for development
- sugar3.activity.bundlebuilder.cmd_dist_source(config, options)¶
Create a tar source package
- sugar3.activity.bundlebuilder.cmd_dist_xo(config, options)¶
Create a xo bundle package
- sugar3.activity.bundlebuilder.cmd_fix_manifest(config, options)¶
Add missing files to the manifest (OBSOLETE)
- sugar3.activity.bundlebuilder.cmd_genpot(config, options)¶
Generate the gettext pot file
- sugar3.activity.bundlebuilder.cmd_install(config, options)¶
Install the activity in the system
- sugar3.activity.bundlebuilder.list_files(base_dir, ignore_dirs=None, ignore_files=None)¶
- sugar3.activity.bundlebuilder.start()¶