From e0d936a798a9141f00fb5a44b97756e489626e39 Mon Sep 17 00:00:00 2001 From: laurent-bernabe Date: Fri, 09 Nov 2012 11:22:04 +0000 Subject: This time I am using the advanced version of setup.py sugar script. Allowing me to package activity directly from my host os. --- diff --git a/setup.py b/setup.py index 983eb4d..26a311b 100755 --- a/setup.py +++ b/setup.py @@ -15,5 +15,14 @@ #You should have received a copy of the GNU General Public License #along with LearningWriting. If not, see . -from sugar.activity import bundlebuilder -bundlebuilder.start() \ No newline at end of file +try: + from sugar.activity import bundlebuilder + bundlebuilder.start() +except ImportError: + import os + os.system("find ./ | sed 's,^./,HelloWorldActivity.activity/,g' > MANIFEST") + os.system('rm HelloWorldActivity.xo') + os.chdir('..') + os.system('zip -r HelloWorldActivity.xo HelloWorldActivity.activity') + os.system('mv HelloWorldActivity.xo ./HelloWorldActivity.activity') + os.chdir('HelloWorldActivity.activity') \ No newline at end of file -- cgit v0.9.1