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

Unified Diff: bootstrap/custom_builds/pytz.py

Issue 381043002: Add a virtualenv-based python bootstrapping service to infra. (Closed) Base URL: https://chromium.googlesource.com/infra/infra@master
Patch Set: Make it work on linux! Also... PyYAML... grumble Created 6 years, 5 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/pytz.py
diff --git a/bootstrap/custom_builds/pytz.py b/bootstrap/custom_builds/pytz.py
new file mode 100644
index 0000000000000000000000000000000000000000..304f9c890a79bd4aa0fb29a62a13955925d289b9
--- /dev/null
+++ b/bootstrap/custom_builds/pytz.py
@@ -0,0 +1,11 @@
+import os
+import subprocess
+
+def Build(source_path, wheelhouse_path):
+ subprocess.check_call(
+ ['make', 'CFLAGS=-DSTD_INSPIRED', '.stamp-tzinfo'], cwd=source_path)
+
+ path = os.path.join(source_path, 'src')
+ subprocess.check_call(
+ ['python', 'setup.py', 'bdist_wheel', '--dist-dir', wheelhouse_path],
+ cwd=path)
« no previous file with comments | « bootstrap/custom_builds/__init__.py ('k') | bootstrap/deps.pyl » ('j') | bootstrap/deps.pyl » ('J')

Powered by Google App Engine
This is Rietveld 408576698