diff options
Diffstat (limited to 'setup.py')
-rw-r--r-- | setup.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/setup.py b/setup.py new file mode 100644 index 0000000..977ab03 --- /dev/null +++ b/setup.py @@ -0,0 +1,14 @@ +#!/usr/bin/env python
+# Copyright (C) IBM Corporation 2008
+# Taken from the OLPC Wiki.
+try:
+ from sugar.activity import bundlebuilder
+ bundlebuilder.start("InfoSlicer")
+except ImportError:
+ import os
+ os.system("find ./ | sed 's,^./,InfoSlicer.activity/,g' > MANIFEST")
+ os.system('rm InfoSlicer.xo')
+ os.chdir('..')
+ os.system('zip -r InfoSlicer.xo InfoSlicer.activity')
+ os.system('mv InfoSlicer.xo ./InfoSlicer.activity')
+ os.chdir('InfoSlicer.activity')
\ No newline at end of file |