-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.py
executable file
·35 lines (30 loc) · 1.09 KB
/
setup.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/env python
import os
import sys
if len(sys.argv) > 1 and '--no-sugar' == sys.argv[1]:
# Remove the argument from the stack so we don't cause problems
# for distutils
sys.argv.pop(1)
import glob, os.path, string
from distutils.core import setup
from DistUtilsExtra.command import build_i18n, build_extra
DATA_FILES = [
('/usr/share/turtleart/icons', glob.glob('icons/*')),
('/usr/share/turtleart/images', glob.glob('images/*')),
('/usr/share/applications', ['turtleart.desktop'])
]
setup (name = 'Turtle Art',
description = "A LOGO-like tool for teaching programming",
author = "Walter Bender",
author_email = "walter.bender@gmail.com",
version = '0.9.4',
packages = ['TurtleArt'],
scripts = ['turtleart'],
data_files = DATA_FILES,
cmdclass = {'build_i18n': build_i18n.build_i18n,
'build': build_extra.build_extra},
)
else:
from sugar.activity import bundlebuilder
if __name__ == "__main__":
bundlebuilder.start()