Skip to content

Commit

Permalink
Add OpenSSL as dependency of EdgeDB 6 (#108)
Browse files Browse the repository at this point in the history
This is newly required by the Rust extension
  • Loading branch information
fantix authored Sep 6, 2024
1 parent e0d522d commit 1ad9234
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions edgedbpkg/edgedb/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,17 @@ def sh_get_build_wheel_env(
build.get_build_dir(self, relative_to="pkgsource") / "share"
)

openssl_pkg = build.get_package("openssl")
if build.is_bundled(openssl_pkg):
openssl_path = build.get_install_dir(
openssl_pkg, relative_to="buildroot"
)
openssl_path /= build.get_full_install_prefix().relative_to("/")
quoted = shlex.quote(str(openssl_path))
pwd = "$(pwd -P)"
env["OPENSSL_LIB_DIR"] = f"!{pwd}/{quoted}/lib"
env["OPENSSL_INCLUDE_DIR"] = f"!{pwd}/{quoted}/include"

return env

def get_build_script(self, build: targets.Build) -> str:
Expand Down

0 comments on commit 1ad9234

Please sign in to comment.