Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions bbot/core/helpers/depsinstaller/installer.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,14 +453,16 @@ def _core_dep_satisfied(self, command):
For special entries like openssl_dev_headers, use a custom check.
"""
if command == "openssl_dev_headers":
# check for openssl headers by looking for the pkg-config file or header
# look for the actual header. the openssl binary is NOT a proxy: many minimal
# images (e.g. python:3.11-slim) ship openssl but not the -dev headers, and
# anything that compiles against libssl needs the header.
return any(
Path(p).exists()
for p in [
"/usr/include/openssl/ssl.h",
"/usr/local/include/openssl/ssl.h",
]
) or bool(self.parent_helper.which("openssl"))
)
return bool(self.parent_helper.which(command))

async def install_core_deps(self):
Expand Down
Loading