Web · Wiki · Activities · Blog · Lists · Chat · Meeting · Bugs · Git · Translate · Archive · People · Donate

Commit 5bcb26b7459a7da06531d6b255d68e0df7d595ef

need setup.py
setup.py
(3 / 31)
  
11#!/usr/bin/env python
2import os
3import sys
4
5if len(sys.argv) > 1 and '--no-sugar' == sys.argv[1]:
6 # Remove the argument from the stack so we don't cause problems
7 # for distutils
8 sys.argv.pop(1)
9
10 import glob, os.path, string
11 from distutils.core import setup
12
13 DATA_FILES = [
14 ('icons', glob.glob('icons/*')),
15 ('images', glob.glob('images/*')),
16 ('/usr/share/applications', ['turtleart.desktop'])
17 ]
18
19 setup (name = 'Turtle Art',
20 description = "A LOGO-like tool for teaching programming",
21 author = "Walter Bender",
22 author_email = "walter.bender@gmail.com",
23 version = '0.9.4',
24 packages = ['TurtleArt'],
25 scripts = ['turtleart'],
26 data_files = DATA_FILES,
27 )
28else:
29 from sugar.activity import bundlebuilder
30
31 if __name__ == "__main__":
32 bundlebuilder.start()
2from sugar3.activity import bundlebuilder
3if __name__ == "__main__":
4 bundlebuilder.start()