Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWalter Bender <walter.bender@gmail.com>2012-04-03 23:08:09 (GMT)
committer Walter Bender <walter.bender@gmail.com>2012-04-03 23:08:09 (GMT)
commit5be3d10442c479bc19ca4072560bfacf4d29e5c8 (patch)
tree435e3720c81fad4d8091759dff4f4289abc50361
parentbadb3bbb579de25b78c9b0bd30c78a6040e21905 (diff)
new version; new permissions
-rwxr-xr-x[-rw-r--r--]setup.py48
1 files changed, 29 insertions, 19 deletions
diff --git a/setup.py b/setup.py
index d204eea..e5026ee 100644..100755
--- a/setup.py
+++ b/setup.py
@@ -1,22 +1,32 @@
-#!/bin/env python
+#!/usr/bin/env python
+import os
+import sys
-# 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
+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
+
+ DATA_FILES = [
+ ('icons', glob.glob('icons/*')),
+ ('images', glob.glob('images/*')),
+ ('/usr/share/applications', ['turtleart.desktop'])
+ ]
-from sugar.activity import bundlebuilder
-
-bundlebuilder.start("xoEditor")
+ 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,
+ )
+else:
+ from sugar.activity import bundlebuilder
+ if __name__ == "__main__":
+ bundlebuilder.start()