From ea02aaaa230b9d4b770561d72ea1f3703eac8289 Mon Sep 17 00:00:00 2001 From: "xianxian.zhang" <141706136+xianml@users.noreply.github.com> Date: Wed, 15 Nov 2023 11:21:37 +0800 Subject: [PATCH] fix: correct OPENLLM_DEV_BUILD check (#653) --- openllm-python/src/openllm/bundle/_package.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openllm-python/src/openllm/bundle/_package.py b/openllm-python/src/openllm/bundle/_package.py index e6e5d666..6eed00b2 100644 --- a/openllm-python/src/openllm/bundle/_package.py +++ b/openllm-python/src/openllm/bundle/_package.py @@ -43,7 +43,7 @@ def build_editable( path: str, package: t.Literal['openllm', 'openllm_core', 'openllm_client'] = 'openllm' ) -> str | None: """Build OpenLLM if the OPENLLM_DEV_BUILD environment variable is set.""" - if openllm_core.utils.check_bool_env(OPENLLM_DEV_BUILD, default=False): + if not openllm_core.utils.check_bool_env(OPENLLM_DEV_BUILD, default=False): return None # We need to build the package in editable mode, so that we can import it from build import ProjectBuilder