Patch openssl path detection

This commit is contained in:
Valentin Niess
2025-07-02 12:48:39 +02:00
parent b870853d69
commit 573b4742d2

View File

@@ -92,13 +92,16 @@ class PythonExtractor:
raise NotImplementedError() raise NotImplementedError()
paths.append(self.prefix / 'usr/local/lib') paths.append(self.prefix / 'usr/local/lib')
ssl = glob.glob(str(self.prefix / 'opt/_internal/openssl-*')) patterns = (
if ssl: 'curl-*',
paths.append(Path(ssl[0]) / 'lib') 'mpdecimal-*',
'openssl-*',
mpdecimal = glob.glob(str(self.prefix / 'opt/_internal/mpdecimal-*')) 'sqlite*',
if mpdecimal: )
paths.append(Path(mpdecimal[0]) / 'lib') for pattern in patterns:
pattern = str(self.prefix / f'opt/_internal/{pattern}/lib')
for match in glob.glob(pattern):
paths.append(Path(match))
object.__setattr__(self, 'library_path', paths) object.__setattr__(self, 'library_path', paths)