Author: Matti Picus <[email protected]>
Branch: py3.5
Changeset: r93598:213db4a13e7c
Date: 2017-12-29 13:19 +0200
http://bitbucket.org/pypy/pypy/changeset/213db4a13e7c/
Log: add more info for buildbot virtualenv run with -A
diff --git a/testrunner/get_info.py b/testrunner/get_info.py
--- a/testrunner/get_info.py
+++ b/testrunner/get_info.py
@@ -8,14 +8,20 @@
import json
BASE_DIR = os.path.abspath(os.path.dirname(os.path.dirname(__file__)))
-TARGET_BASENAME = 'pypy3-c'
+if sys.platform.startswith('win'):
+ TARGET_NAME = r'Scripts\\pypy3-c.exe'
+ TARGET_DIR = 'Scripts'
+else:
+ TARGET_NAME = 'pypy3-c'
+ TARGET_DIR = 'bin'
+VENV_DIR = 'pypy-venv'
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}
+ target_path = os.path.join(BASE_DIR, 'pypy', 'goal', TARGET_NAME)
+ return {'target_path': target_path,
+ 'virt_pypy': os.path.join(VENV_DIR, TARGET_DIR, TARGET_NAME),
+ 'venv_dir': VENV_DIR,
+ }
def dump_info():
return json.dumps(make_info_dict())
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit