Author: Amaury Forgeot d'Arc <[email protected]>
Branch:
Changeset: r74466:0e89a463e021
Date: 2014-11-11 22:44 +0100
http://bitbucket.org/pypy/pypy/changeset/0e89a463e021/
Log: Allow "python -m rpython" to run RPython translation.
It's slightly shorter than rpython/bin/rpython, specially when the
interpreter is specified.
diff --git a/rpython/__main__.py b/rpython/__main__.py
new file mode 100644
--- /dev/null
+++ b/rpython/__main__.py
@@ -0,0 +1,16 @@
+"""RPython translation usage:
+
+rpython <translation options> target <targetoptions>
+
+run with --help for more information
+"""
+
+import sys
+
+# no implicit targets
+if len(sys.argv) == 1:
+ print __doc__
+ sys.exit(1)
+
+from rpython.translator.goal.translate import main
+main()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit