Skip to content

Commit

Permalink
setup: Skip UI when building the language server (#8311)
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans authored and msullivan committed Feb 6, 2025
1 parent 71e46f6 commit 4fbff1b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,10 @@
])


def _is_langserver_build() -> bool:
return os.environ.get("EDGEDB_BUILD_PACKAGE", "") == "language-server"


def _compile_build_meta(build_lib, version, pg_config, runstate_dir,
shared_dir, version_suffix):
from edb.common import verutils
Expand Down Expand Up @@ -917,6 +921,9 @@ def finalize_options(self):
self.set_undefined_options("build_py", ("build_lib", "build_lib"))

def run(self, *args, **kwargs):
if _is_langserver_build():
return

from edb import buildmeta
from edb.common import devmode

Expand Down

0 comments on commit 4fbff1b

Please sign in to comment.