Skip to content

Commit 18d686c

Browse files
committed
Skip examples DB generation when Python env is unavailable
1 parent e48e61d commit 18d686c

1 file changed

Lines changed: 6 additions & 2 deletions

File tree

ci/install_examples_db.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,9 +41,13 @@ def main() -> int:
4141
db = examples_dir / "gemc.db"
4242
python = prefix / "python_env" / "bin" / "python3"
4343

44+
if os.environ.get("GEMC_SKIP_PYTHON_ENV_INSTALL") == "1":
45+
print(" > Skipping examples database generation because Python environment installation was skipped")
46+
return 0
47+
4448
if not python.exists():
45-
print(f" > Cannot generate examples database: {python} was not found", file=sys.stderr)
46-
return 1
49+
print(f" > Skipping examples database generation: {python} was not found")
50+
return 0
4751

4852
db.unlink(missing_ok=True)
4953

0 commit comments

Comments
 (0)