Skip to content

Commit

Permalink
setup: Skip UI and libpg_query when building the language server
Browse files Browse the repository at this point in the history
  • Loading branch information
elprans committed Feb 5, 2025
1 parent 300b877 commit 26c6bb7
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 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 @@ -802,6 +806,8 @@ def finalize_options(self):
pass

def run(self):
if _is_langserver_build():
return
_compile_libpg_query()


Expand Down Expand Up @@ -917,6 +923,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 26c6bb7

Please sign in to comment.