def start(): parser = argparse.ArgumentParser(prog='./setup.py') subparsers = parser.add_subparsers( dest="command", help="Options for %(prog)s") install_parser = subparsers.add_parser( "install", help="Install the activity in the system") install_parser.add_argument( "--prefix", dest="prefix", default=sys.prefix, help="Path for installing") install_parser.add_argument( "--skip-install-mime", dest="install_mime", action="store_false", default=True, help="Skip the installation of custom mime types in the system") install_parser.add_argument( "--skip-install-desktop-file", dest="install_desktop_file", action="store_false", default=True, help="Skip the installation of desktop file in the system") check_parser = subparsers.add_parser( "check", help="Run tests for the activity") check_parser.add_argument("choice", nargs='?', choices=['unit', 'integration'], help="run unit/integration test") check_parser.add_argument("--verbosity", "-v", dest="verbose", type=int, choices=range(0, 3), default=1, nargs='?', help="verbosity for the unit tests") dist_parser = subparsers.add_parser("dist_xo", help="Create a xo bundle package") dist_parser.add_argument( "--no-fail", dest="no_fail", action="store_true", default=False, help="continue past failure when building xo file") subparsers.add_parser("dist_source", help="Create a tar source package") subparsers.add_parser("build", help="Build generated files") subparsers.add_parser("genpot", help="Generate the gettext pot file") subparsers.add_parser("dev", help="Setup for development") options = parser.parse_args() if options.command == "genpot": source_dir = os.path.abspath(os.path.dirname(sys.argv[0])) config = bundlebuilder.Config(source_dir) cmd_genpot(config, options) else: bundlebuilder.start()
#!/usr/bin/env python # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA from sugar3.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start()
#!/usr/bin/env python from sugar3.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("StarChart")
def start(): parser = argparse.ArgumentParser(prog='./setup.py') subparsers = parser.add_subparsers(dest="command", help="Options for %(prog)s") install_parser = subparsers.add_parser( "install", help="Install the activity in the system") install_parser.add_argument("--prefix", dest="prefix", default=sys.prefix, help="Path for installing") install_parser.add_argument( "--skip-install-mime", dest="install_mime", action="store_false", default=True, help="Skip the installation of custom mime types in the system") install_parser.add_argument( "--skip-install-desktop-file", dest="install_desktop_file", action="store_false", default=True, help="Skip the installation of desktop file in the system") check_parser = subparsers.add_parser("check", help="Run tests for the activity") check_parser.add_argument("choice", nargs='?', choices=['unit', 'integration'], help="run unit/integration test") check_parser.add_argument("--verbosity", "-v", dest="verbose", type=int, choices=range(0, 3), default=1, nargs='?', help="verbosity for the unit tests") dist_parser = subparsers.add_parser("dist_xo", help="Create a xo bundle package") dist_parser.add_argument( "--no-fail", dest="no_fail", action="store_true", default=False, help="continue past failure when building xo file") subparsers.add_parser("dist_source", help="Create a tar source package") subparsers.add_parser("build", help="Build generated files") subparsers.add_parser("genpot", help="Generate the gettext pot file") subparsers.add_parser("dev", help="Setup for development") options = parser.parse_args() if options.command == "genpot": source_dir = os.path.abspath(os.path.dirname(sys.argv[0])) config = bundlebuilder.Config(source_dir) cmd_genpot(config, options) else: bundlebuilder.start()
#!/usr/bin/env python from sugar3.activity import bundlebuilder if __name__ == "__main__": bundlebuilder.start("Blocku")
#!/usr/bin/python from sugar3.activity import bundlebuilder bundlebuilder.start("SocialCalcActivity")