Skip to content

Commit

Permalink
Fix venv-less install.
Browse files Browse the repository at this point in the history
  • Loading branch information
chipkent committed May 7, 2024
1 parent 37e43a0 commit 853ae75
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions dhib_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,8 @@ def ibwheel(
"""Create a development environment."""
logging.warning(f"Creating an ib wheel: python={python}, ib_version={ib_version}")

python = Path(python).absolute() if python.startswith("./") else python

version_assert_format(ib_version)

logging.warning(f"Using system python: {python}")
Expand Down Expand Up @@ -457,6 +459,8 @@ def dev(
"""Create a development environment."""
logging.warning(f"Creating development environment: python={python} dh_version={dh_version}, dh_version_exact={dh_version_exact}, ib_version={ib_version}, dh_ib_version={dh_ib_version}, delete_vm_if_exists={delete_venv}")

python = Path(python).absolute() if python.startswith("./") else python

if dh_version_exact:
if dh_version != DH_VERSION_DEFAULT:
raise ValueError(f"Cannot specify both dh_version={dh_version} and dh_version_exact={dh_version_exact}")
Expand Down Expand Up @@ -527,6 +531,8 @@ def release(
"""Create a release environment."""
logging.warning(f"Creating release environment: python={python} dh_ib_version={dh_ib_version}")

python = Path(python).absolute() if python.startswith("./") else python

wheel = download_wheel(python, "deephaven_ib", dh_ib_version)
deps = pkg_dependencies(wheel)
ib_version = deps["ibapi"].replace("==", "")
Expand Down

0 comments on commit 853ae75

Please sign in to comment.