コード例 #1
0
#!/usr/bin/env python
try:
    from sugar.activity import bundlebuilder
    bundlebuilder.start("LucasActivity")
except ImportError:
    import os
    os.system("find ./ | sed 's,^./,gtktest.activity/,g' > MANIFEST")
    os.system('rm gtktest.xo')
    os.chdir('..')
    os.system('zip -r gtktest.xo gtktest.activity')
    os.system('mv gtktest.xo ./gtktest.activity')
    os.chdir('gtktest.activity')
コード例 #2
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
from ConfigParser import ConfigParser
parser = ConfigParser()
parser.read("activity/activity.info")
name = parser.get('Activity', 'name')
bundlebuilder.start(name)
コード例 #3
0
#!/usr/bin/python
from sugar.activity import bundlebuilder

bundlebuilder.start("VBA")
コード例 #4
0
ファイル: setup.py プロジェクト: abdelmaaboud/turtleart
                if not os.path.isdir(mo_path):
                    os.makedirs(mo_path)

                mo_file = os.path.join(mo_path, 'org.laptop.TurtleArtActivity.mo')
                retcode = subprocess.call(['msgfmt', '--output-file=%s' % mo_file, file_name])
                if retcode:
                    print 'ERROR - msgfmt failed with return code %i.' % retcode

    DATA_FILES = [
        ('activity', glob.glob('activity/*')),
        ('icons', glob.glob('icons/*')),
        ('images', glob.glob('images/*')),
        ('/usr/share/applications', ['turtleblocks.desktop'])
    ]

    setup(name='Turtle Art',
          description="A LOGO-like tool for teaching programming",
          author="Walter Bender",
          author_email="*****@*****.**",
          version='0.9.4',
          packages=['TurtleArt', 'TurtleArt.util'],
          scripts=['turtleblocks'],
          data_files=DATA_FILES,
          cmdclass={"install": post_install}
          )
else:
    from sugar.activity import bundlebuilder

    if __name__ == "__main__":
        bundlebuilder.start()
コード例 #5
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("tetrismat")
コード例 #6
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("MotionCapture")
コード例 #7
0
ファイル: setup.py プロジェクト: morgs/poll-builder
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Poll')
コード例 #8
0
#!/usr/bin/python

# Make the MANIFEST file.  The contents of the activity folder and the NEWS and MANIFEST
# files are already included in the .xo file which the bundlebuilder creates, so don't
# add them to the manifest file.
import os
##os.system("find ./ -name 'activity' -prune -o -name 'NEWS' \
##                                    -prune -o -name 'MANIFEST' \
##                                    -prune -o -name '.svn' \
##                                    -prune -o -name '*.pyc' \
##                                    -prune -o -name '*.xo' \
##                                    -prune -o -name '*.swp' \
##                                    -prune -o -name '.git*' \
##                                    -prune -o -type f \
##                   -print > MANIFEST") 

from sugar.activity import bundlebuilder
bundlebuilder.start("SocialCalcActivity")
コード例 #9
0
ファイル: setup.py プロジェクト: CloudyDino/Kiwix.activity
#!/usr/bin/env python

# Copyright (C) 2009, Simon Schampijer
#
# 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 sugar.activity import bundlebuilder

bundlebuilder.start("Kiwix")
コード例 #10
0
ファイル: setup.py プロジェクト: FOSSRIT/lemonade-stand
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("Lemonade")
コード例 #11
0
ファイル: setup.py プロジェクト: Daksh/showntell
#!/usr/bin/env python
try:
	from sugar.activity import bundlebuilder
	bundlebuilder.start("ClassroomPresenter")
except ImportError:
	import os
	#os.system("find ./ | sed 's,^./,ClassroomPresenter.activity/,g' > MANIFEST")
	os.system('rm ClassroomPresenter.xo')
	os.chdir('..')
	os.system('zip -r ClassroomPresenter.xo ClassroomPresenter.activity')
	os.system('mv ClassroomPresenter.xo ./ClassroomPresenter.activity')
	os.chdir('ClassroomPresenter.activity')
コード例 #12
0
ファイル: setup.py プロジェクト: gmccreight/geoquiz
#!/usr/bin/env python

# Make the MANIFEST file.  The contents of the activity folder and the NEWS and MANIFEST
# files are already included in the .xo file which the bundlebuilder creates, so don't
# add them to the manifest file.
import os
os.system("find ./ -name 'activity' -prune -o -name 'NEWS' -prune -o -name 'MANIFEST' -prune \
-o -name '.svn' -prune -o -name '*.pyc' -prune -o -name '*.xo' -prune -o -type f -print > MANIFEST")

from sugar.activity import bundlebuilder
bundlebuilder.start("Geoquiz")
コード例 #13
0
ファイル: setup.py プロジェクト: sugarlabs/VncLauncher
#!/usr/bin/python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder
bundlebuilder.start('VncLauncher')
コード例 #14
0
ファイル: setup.py プロジェクト: FOSSRIT/sweetermail
#!/usr/bin/env python
from sugar.activity import bundlebuilder
bundlebuilder.start("mailactivity")
コード例 #15
0
ファイル: setup.py プロジェクト: valentinbasel/tennis
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("icaro")
コード例 #16
0
ファイル: setup.py プロジェクト: Bundloleers/bundle
#!/usr/bin/env python
try:
	from sugar.activity import bundlebuilder
	bundlebuilder.start("BundleActivity")
except ImportError:
	import os
	os.system("find ./ | sed 's,^./,gtktest.activity/,g' > MANIFEST")
	os.system('rm gtktest.xo')
	os.chdir('..')
	os.system('zip -r gtktest.xo gtktest.activity')
	os.system('mv gtktest.xo ./gtktest.activity')
	os.chdir('gtktest.activity')
コード例 #17
0
ファイル: setup.py プロジェクト: Daksh/joke-machine
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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

try:
  from sugar.activity import bundlebuilder
  bundlebuilder.start("JokeMachine")
except ImportError:
  print 'Cannot find a working sugar environment'

コード例 #18
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder

bundlebuilder.start("Bridge")
コード例 #19
0
ファイル: setup.py プロジェクト: Daksh/jigsaw-puzzle
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder
bundlebuilder.start('JigsawPuzzle')
コード例 #20
0
ファイル: setup.py プロジェクト: sugarlabs/pyeyes-activity
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("PyEyes")
コード例 #21
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder
bundlebuilder.start("SliderPuzzle")
コード例 #22
0
#!/usr/bin/env python
try:
    from sugar.activity import bundlebuilder
    bundlebuilder.start("x2o")
except ImportError:
    import os
    os.system("find ./ | sed 's,^./,x2o.activity/,g' > MANIFEST")
    os.chdir('..')
    os.system('zip -r x2o.xo x2o.activity')
    os.system('mv x2o.xo ./x2o.activity')
    os.chdir('x2o.activity')

コード例 #23
0
ファイル: setup.py プロジェクト: Daksh/bridge
#!/usr/bin/env python
from sugar.activity import bundlebuilder
bundlebuilder.start("Bridge")

コード例 #24
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder

bundlebuilder.start('Karma')
コード例 #25
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
	bundlebuilder.start("Landmine")
コード例 #26
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("%(name)s")
コード例 #27
0
ファイル: setup.py プロジェクト: lukec/httpactivity
#!/usr/bin/python
from sugar.activity import bundlebuilder
bundlebuilder.start("OnePageWikiActivity")
コード例 #28
0
ファイル: setup.py プロジェクト: alesegovia/ceibal-chess
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder

if __name__ == "__main__":
	bundlebuilder.start('ceibalchess')
コード例 #29
0
#!/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder

import os

os.system("make")

bundlebuilder.start("map")
コード例 #30
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("conozco-paraguay")
コード例 #31
0
ファイル: setup.py プロジェクト: summerpygames/parachute
#!/usr/bin/env python
from sugar.activity import bundlebuilder

if __name__ == "__main__":
    bundlebuilder.start("Parachute")
コード例 #32
0
ファイル: setup.py プロジェクト: jpazer/KittyCount
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("KittyCount")
コード例 #33
0
ファイル: setup.py プロジェクト: markamber/rockfordrobotics
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("SpaceMath")
コード例 #34
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Paint')
コード例 #35
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("StarChart")
コード例 #36
0
#!/usr/bin/env python

from sugar.activity import bundlebuilder

bundlebuilder.start('Gambiarra')
コード例 #37
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder

bundlebuilder.start('Karma')
コード例 #38
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("TurtleMachine")
コード例 #39
0
#!/usr/bin/python
from sugar.activity import bundlebuilder
bundlebuilder.start('Frotz')

コード例 #40
0
ファイル: setup.py プロジェクト: Lasanha/Gambiarra
#!/usr/bin/env python

from sugar.activity import bundlebuilder
bundlebuilder.start('Gambiarra')
コード例 #41
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder

bundlebuilder.start('ViewSlides')

コード例 #42
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("Blocku")
コード例 #43
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start('Tuxmath')
コード例 #44
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("mathquwi")
コード例 #45
0
#!/usr/bin/env python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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

try:
    from sugar.activity import bundlebuilder
    bundlebuilder.start("JokeMachine")
except ImportError:
    print 'Cannot find a working sugar environment'
コード例 #46
0
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("ajedrezactivity")
コード例 #47
0
#!/usr/bin/python

# Copyright (C) 2006, Red Hat, Inc.
#
# 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 sugar.activity import bundlebuilder
bundlebuilder.start('VncServer')



コード例 #48
0
    for name, func in globals().items():
        if name.startswith('cmd_'):
            print "%-20s %s" % (name.replace('cmd_', ''), func.__doc__)

    print '\n(Type "./setup.py <command> --help" for help about a ' \
          'particular command\'s options.'


def start(bundle_name=None):
    if bundle_name:
        logging.warn("bundle_name deprecated, now comes from activity.info")

    parser = OptionParser(usage='[action] [options]')
    parser.disable_interspersed_args()
    (options_, args) = parser.parse_args()

    # config = Config()

    try:
        globals()['cmd_' + args[0]](args[1:])
    except (KeyError, IndexError):
        print_commands()


if __name__ == "__main__":
    try:
        from sugar.activity import bundlebuilder
        bundlebuilder.start()
    except ImportError:
        start()
コード例 #49
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("Valorar")
コード例 #50
0
ファイル: setup.py プロジェクト: mllofriu/tateti
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("TatetiMesh")
コード例 #51
0
#!/usr/bin/env python
from sugar.activity import bundlebuilder
if __name__ == "__main__":
    bundlebuilder.start("FoodForce2")
コード例 #52
0
            flag_file.write(last_version)
            flag_file.close()

            # Copy activity.info file
            print "Create activity.info for", language
            shutil.copyfile('activity/activity.info.' + language,
                            'activity/activity.info')

            # Create MANIFEST
            print "Create MANIFEST"
            list_git_files = subprocess.check_output(['git', 'ls-files'])
            manifest_file = codecs.open('MANIFEST', 'w', encoding='utf-8')
            manifest_file.write('activity/activity.info\n')
            for name_file in list_git_files:
                manifest_file.write(name_file)
            for name_file in list_data_files:
                if not os.path.isdir(name_file):
                    manifest_file.write(name_file + '\n')
            manifest_file.close()

            prepare_ok = True
        else:
            print "MD5 check error"

if sys.argv[1] == 'fix_manifest':
    print "Don't use fix_manifest. The MANIFEST is build in prepare stage"
    prepare_ok = False

if prepare_ok:
    bundlebuilder.start('Wikipedia')
コード例 #53
0
ファイル: setup.py プロジェクト: AidHamza/eviltoys
#!/usr/bin/python
from sugar.activity import bundlebuilder

bundlebuilder.start("LeerPendrive")