From 853ae758d28045d11eb2948773e234cdf20d05b3 Mon Sep 17 00:00:00 2001 From: Chip Kent Date: Tue, 7 May 2024 16:11:38 -0600 Subject: [PATCH] Fix venv-less install. --- dhib_env.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/dhib_env.py b/dhib_env.py index e3103e14..4c8d2959 100755 --- a/dhib_env.py +++ b/dhib_env.py @@ -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}") @@ -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}") @@ -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("==", "")