Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1190)

Unified Diff: vpython/venv/test_data/setup_check.py

Issue 2699063004: vpython: Add VirtualEnv creation package. (Closed)
Patch Set: bootstrap straight out of tempdir Created 3 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « vpython/venv/test_data/pants.src/setup.py ('k') | vpython/venv/test_data/shirt.src/.gitignore » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: vpython/venv/test_data/setup_check.py
diff --git a/vpython/venv/test_data/setup_check.py b/vpython/venv/test_data/setup_check.py
new file mode 100644
index 0000000000000000000000000000000000000000..5e11d5d76939e4d5661a5235171a7829b3b99988
--- /dev/null
+++ b/vpython/venv/test_data/setup_check.py
@@ -0,0 +1,32 @@
+# Copyright 2017 The LUCI Authors. All rights reserved.
+# Use of this source code is governed under the Apache License, Version 2.0
+# that can be found in the LICENSE file.
+
+import argparse
+import json
+import sys
+
+# Also, import our two VirtualEnv packages.
+import pants
+import shirt
+
+
+def main(args):
+ parser = argparse.ArgumentParser()
+ parser.add_argument('--json-output',
+ help='JSON output path.')
+ opts = parser.parse_args(args)
+
+ manifest = {
+ 'interpreter': sys.executable,
+ 'pants': pants.__file__,
+ 'shirt': shirt.__file__,
+ }
+
+ if opts.json_output:
+ with open(opts.json_output, 'w') as fd:
+ json.dump(manifest, fd)
+ return 0
+
+if __name__ == '__main__':
+ sys.exit(main(sys.argv[1:]))
« no previous file with comments | « vpython/venv/test_data/pants.src/setup.py ('k') | vpython/venv/test_data/shirt.src/.gitignore » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698