Skip to content

Commit 573b474

Browse files
committed
Patch openssl path detection
1 parent b870853 commit 573b474

1 file changed

Lines changed: 10 additions & 7 deletions

File tree

‎python_appimage/manylinux/extract.py‎

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,16 @@ def __post_init__(self):
9292
raise NotImplementedError()
9393
paths.append(self.prefix / 'usr/local/lib')
9494

95-
ssl = glob.glob(str(self.prefix / 'opt/_internal/openssl-*'))
96-
if ssl:
97-
paths.append(Path(ssl[0]) / 'lib')
98-
99-
mpdecimal = glob.glob(str(self.prefix / 'opt/_internal/mpdecimal-*'))
100-
if mpdecimal:
101-
paths.append(Path(mpdecimal[0]) / 'lib')
95+
patterns = (
96+
'curl-*',
97+
'mpdecimal-*',
98+
'openssl-*',
99+
'sqlite*',
100+
)
101+
for pattern in patterns:
102+
pattern = str(self.prefix / f'opt/_internal/{pattern}/lib')
103+
for match in glob.glob(pattern):
104+
paths.append(Path(match))
102105

103106
object.__setattr__(self, 'library_path', paths)
104107

0 commit comments

Comments
 (0)