mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-02-16 19:41:07 +03:00
Fix check in macOS (#1369), bump v1.11.1
This commit is contained in:
parent
64752d89fc
commit
8aa15174ab
|
@ -22,11 +22,12 @@ def _find_ssl_lib():
|
||||||
# Credit for fix goes to Sarah Harvey (@worldwise001)
|
# Credit for fix goes to Sarah Harvey (@worldwise001)
|
||||||
# https://www.shh.sh/2020/01/04/python-abort-trap-6.html
|
# https://www.shh.sh/2020/01/04/python-abort-trap-6.html
|
||||||
if sys.platform == 'darwin':
|
if sys.platform == 'darwin':
|
||||||
_, major, minor = platform.mac_ver()[0].split('.')
|
release, _version_info, _machine = platform.mac_ver()
|
||||||
|
major = release.split('.', maxsplit=1)[0]
|
||||||
# macOS 10.14 "mojave" is the last known major release
|
# macOS 10.14 "mojave" is the last known major release
|
||||||
# to support unversioned libssl.dylib. Anything above
|
# to support unversioned libssl.dylib. Anything above
|
||||||
# needs specific versions
|
# needs specific versions
|
||||||
if int(major) > 14:
|
if major and int(major) > 14:
|
||||||
lib = (
|
lib = (
|
||||||
ctypes.util.find_library('libssl.46') or
|
ctypes.util.find_library('libssl.46') or
|
||||||
ctypes.util.find_library('libssl.44') or
|
ctypes.util.find_library('libssl.44') or
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
# Versions should comply with PEP440.
|
# Versions should comply with PEP440.
|
||||||
# This line is parsed in setup.py:
|
# This line is parsed in setup.py:
|
||||||
__version__ = '1.11.0'
|
__version__ = '1.11.1'
|
||||||
|
|
Loading…
Reference in New Issue
Block a user