Skip to content

Commit 2c60c17

Browse files
committed
Add debug prints to setup.py
1 parent 9a33853 commit 2c60c17

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

setup.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,15 @@ def run(self):
8585
bazelversion_path = os.path.join(
8686
os.path.dirname(os.path.realpath(__file__)), ".bazelversion"
8787
)
88+
print(f"DEBUG: bazelversion_path={bazelversion_path}")
89+
print(f"DEBUG: exists={os.path.exists(bazelversion_path)}")
8890
if os.path.exists(bazelversion_path):
8991
with open(bazelversion_path) as f:
9092
bazel_version = f.read().strip()
93+
print(f"DEBUG: bazel_version={bazel_version}")
9194
if "USE_BAZEL_VERSION" not in os.environ:
9295
os.environ["USE_BAZEL_VERSION"] = bazel_version
96+
print(f"DEBUG: USE_BAZEL_VERSION={os.environ.get('USE_BAZEL_VERSION')}")
9397

9498
subprocess.check_call(
9599
[self._bazel_cmd, "run", "-c", "opt"]

0 commit comments

Comments
 (0)