Locations -
bigqueryhelper -> infra/libs/bigquery
bigquery -> infra/appengine/third_party/bigquery
Directions -
1. Setup symlinks in a library folder under your appengine app. You can copy what I've done here: https://chromium-review.googlesource.com/c/infra/infra/+/819975
That cl contains all the libraries I had to add to get it working.
2. In your appengine_config.py, you need to include this lib path. Something similar to:
from google.appengine.ext import vendor
vendor.add(
os.path.join(os.path.dirname(os.path.realpath(__file__)), 'third_party'))
Read up about it here: https://cloud.google.com/appengine/docs/standard/python/tools/using-libraries-python-27
You should be all setup for managed appengine instances.
Directions for local python runs -
You need to setup your directory structure so python sees all your symlinked libraries, something like this works (our app is Findit).
_FINDIT_DIR = os.path.join(
os.path.dirname(__file__), os.path.pardir, os.path.pardir)
_THIRD_PARTY_DIR = os.path.join(
os.path.dirname(__file__), os.path.pardir, os.path.pardir, 'third_party')
sys.path.insert(1, _FINDIT_DIR)
sys.path.insert(0, _THIRD_PARTY_DIR)
Comment 1 by st...@chromium.org
, Dec 15 2017Status: Assigned (was: Untriaged)