commons-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbe...@apache.org
Subject svn commit: r1032243 - in /commons/sandbox/gsoc/2010/scxml-js/trunk: setup.py src/python/scxml/cgf/SCXMLCompiler.py
Date Sun, 07 Nov 2010 09:38:39 GMT
Author: jbeard
Date: Sun Nov  7 09:38:38 2010
New Revision: 1032243

URL: http://svn.apache.org/viewvc?rev=1032243&view=rev
Log:
Made changes to make python egg directly executable.

Modified:
    commons/sandbox/gsoc/2010/scxml-js/trunk/setup.py
    commons/sandbox/gsoc/2010/scxml-js/trunk/src/python/scxml/cgf/SCXMLCompiler.py

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/setup.py
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/setup.py?rev=1032243&r1=1032242&r2=1032243&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/setup.py (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/setup.py Sun Nov  7 09:38:38 2010
@@ -1,10 +1,14 @@
 from setuptools import setup, find_packages
 
 setup(
-    name = "scxml-js",
-    version = "0.1a",
-    packages = find_packages("src/python"),
-    package_dir = {"":"src/python"},
-    package_data = { 'scxml.cgf': ['target/*.xsl','xslt/ir-compiler/*.xsl','xslt/layout/*.xsl']
}
-
+	name = "scxml-js",
+	version = "0.1a",
+	packages = find_packages("src/python"),
+	package_dir = {"":"src/python"},
+	package_data = { 'scxml.cgf': ['target/*.xsl','xslt/ir-compiler/*.xsl','xslt/layout/*.xsl']
},
+	entry_points = {
+		'setuptools.installation': [
+			'eggsecutable = scxml.cgf.SCXMLCompiler:main',
+		]
+	}
 )

Modified: commons/sandbox/gsoc/2010/scxml-js/trunk/src/python/scxml/cgf/SCXMLCompiler.py
URL: http://svn.apache.org/viewvc/commons/sandbox/gsoc/2010/scxml-js/trunk/src/python/scxml/cgf/SCXMLCompiler.py?rev=1032243&r1=1032242&r2=1032243&view=diff
==============================================================================
--- commons/sandbox/gsoc/2010/scxml-js/trunk/src/python/scxml/cgf/SCXMLCompiler.py (original)
+++ commons/sandbox/gsoc/2010/scxml-js/trunk/src/python/scxml/cgf/SCXMLCompiler.py Sun Nov
 7 09:38:38 2010
@@ -58,8 +58,9 @@ def optlistToDict(optlist):
 
 	return toReturn
 
-def main(argv):
+def main():
 	#parse command-line args
+	argv=sys.argv[1:]
 	optlist, args = getopt.getopt(argv, '', ["backend=", "ie","noIndexOf","beautify","log","verbose","genListenerHooks"])
 	#print "opts: ", optlist
 	#print "args: ", args
@@ -72,4 +73,4 @@ def main(argv):
 
 
 if __name__ == "__main__":
-	main(sys.argv[1:])
+	main()



Mime
View raw message