Author: Ronan Lamy <[email protected]>
Branch:
Changeset: r92955:e68c2a6d0069
Date: 2017-11-06 16:15 +0000
http://bitbucket.org/pypy/pypy/changeset/e68c2a6d0069/
Log: Add testrunner/get_info.py script for the buildbot
diff --git a/testrunner/get_info.py b/testrunner/get_info.py
new file mode 100644
--- /dev/null
+++ b/testrunner/get_info.py
@@ -0,0 +1,24 @@
+#!/usr/bin/env python
+"""
+Dump some translation information to stdout as JSON. Used by buildbot.
+"""
+
+import sys
+import os
+import json
+
+BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
+TARGET_BASENAME = 'pypy-c'
+
+def make_info_dict():
+ target = TARGET_BASENAME
+ if sys.platform.startswith('win'):
+ target += '.exe'
+ target_path = os.path.join(BASE_DIR, 'pypy', 'goal', target)
+ return {'target_path': target_path}
+
+def dump_info():
+ return json.dumps(make_info_dict())
+
+if __name__ == '__main__':
+ print dump_info()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit