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

Unified Diff: bootstrap/custom_builds/docutils.py

Issue 1200843003: Added virtualenv for depot_tools (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/tools/depot_tools
Patch Set: Fix on Windows Created 5 years, 6 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
Index: bootstrap/custom_builds/docutils.py
diff --git a/bootstrap/custom_builds/docutils.py b/bootstrap/custom_builds/docutils.py
new file mode 100644
index 0000000000000000000000000000000000000000..9272bc283edfff760d5505ff6addf45ca908d4fe
--- /dev/null
+++ b/bootstrap/custom_builds/docutils.py
@@ -0,0 +1,15 @@
+# Copyright 2014 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+import os
+import subprocess
+import sys
+
+
+def Build(source_path, wheelhouse_path):
+ assert hasattr(sys, 'real_prefix'), 'virtualenv must be activate'
+ pip_path = os.path.join(sys.prefix, 'bin', 'pip')
+ subprocess.check_call([pip_path, 'wheel', '-w', wheelhouse_path,
+ '--no-deps', './docutils'],
+ cwd=source_path)

Powered by Google App Engine
This is Rietveld 408576698