Skip to content

Commit

Permalink
feat: add INSTALL_LIBRARY_FROM_SOURCE to template
Browse files Browse the repository at this point in the history
  • Loading branch information
busunkim96 committed May 13, 2020
1 parent b851db7 commit 2e15eb3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion synthtool/gcp/templates/python_samples/noxfile.py.j2
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,8 @@ IGNORED_VERSIONS = TEST_CONFIG['ignored_versions']

TESTED_VERSIONS = sorted([v for v in ALL_VERSIONS if v not in IGNORED_VERSIONS])

INSTALL_LIBRARY_FROM_SOURCE = os.environ.get(bool("INSTALL_LIBRARY_FROM_SOURCE", False)

#
# Style Checks
#
Expand Down Expand Up @@ -161,7 +163,7 @@ def _session_tests(session, post_install=None):
if os.path.exists("requirements-test.txt"):
session.install("-r", "requirements-test.txt")

if _is_client_library_repo():
if _is_client_library_repo() and INSTALL_LIBRARY_FROM_SOURCE:
session.install('-e', _get_repo_root())

if post_install:
Expand Down

0 comments on commit 2e15eb3

Please sign in to comment.