mirror of
https://github.com/niess/python-appimage.git
synced 2025-08-30 22:30:23 +02:00
Patch openssl path detection
This commit is contained in:
@@ -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)
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user