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

Unified Diff: infra/ext/__init__.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: infra/ext/__init__.py
diff --git a/infra/ext/__init__.py b/infra/ext/__init__.py
deleted file mode 100644
index 89a332a4a3be4c3d4536babe1cb8b4042c2fa2f1..0000000000000000000000000000000000000000
--- a/infra/ext/__init__.py
+++ /dev/null
@@ -1,41 +0,0 @@
-# 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 sys
-
-# Explicit import paths for sub-projects that don't follow the
-# 'infra/ext/<package>/<package>/' directory layout.
-EXTPACKAGES = {
- 'httplib2': os.path.join('httplib2', 'python' + str(sys.version_info[0])),
- 'pytz': os.path.join('pytz', 'src'),
- }
-
-
-def _add_ext_dirs_to_path():
- base = os.path.dirname(os.path.abspath(__file__))
-
- for d in os.listdir(base):
- full = os.path.join(base, EXTPACKAGES.get(d, d))
- if os.path.isdir(full):
- # TODO(iannucci): look for egg
- # Needed to support absolute imports in sub-projects (e.g. pytz has
- # imports like: from pytz.exceptions import AmbiguousTimeError).
- sys.path.insert(0, full)
- # Needed to support 'import infra.ext.foo' syntax.
- __path__.append(full)
-
-_add_ext_dirs_to_path()
-
-# Enough of a hint for pylint / jedi (autocompletion) to find and follow the
-# imports, but doesn't make python import them immediately at runtime.
-#
-# This list should always contain a complete list of all modules in ext.
-if False:
- import argcomplete
- import dateutil
- import httplib2
- import oauth2client
- import pytz
- import requests

Powered by Google App Engine
This is Rietveld 408576698