mirror of
https://github.com/pgadmin-org/pgadmin4.git
synced 2025-02-25 18:55:31 -06:00
Fix an issue where the wheel package is not getting installed on the arm64-based macOS version < 14. #7754
This commit is contained in:
parent
52af8d3e49
commit
b4e4b9d498
@ -43,11 +43,15 @@ for index, req in enumerate(all_requires):
|
|||||||
if 'psycopg[c]' in req:
|
if 'psycopg[c]' in req:
|
||||||
# Starting from Psycopg 3.1.20, ARM64 macOS binary packages are no
|
# Starting from Psycopg 3.1.20, ARM64 macOS binary packages are no
|
||||||
# longer available for macOS versions before 14.0.
|
# longer available for macOS versions before 14.0.
|
||||||
if platform.system() == 'Darwin' and 'arm' in platform.processor()\
|
_req = req.replace('psycopg[c]', 'psycopg[binary]')
|
||||||
and platform.mac_ver()[0] < '14.0':
|
req = "psycopg[binary] == 3.1.19; sys_platform == 'darwin' and" \
|
||||||
req = 'psycopg[binary]==3.1.19'
|
" platform_machine == 'arm64' and platform_release < '23.0' \n"\
|
||||||
else:
|
+ _req + "; (sys_platform == 'darwin' and" \
|
||||||
req = req.replace('psycopg[c]', 'psycopg[binary]')
|
" platform_machine == 'arm64' and" \
|
||||||
|
" platform_release >= '23.0') or" \
|
||||||
|
" (sys_platform == 'darwin' and" \
|
||||||
|
" platform_machine != 'arm64'" \
|
||||||
|
") or sys_platform != 'darwin'"
|
||||||
|
|
||||||
if 'gssapi' in req:
|
if 'gssapi' in req:
|
||||||
kerberos_extras.append(req)
|
kerberos_extras.append(req)
|
||||||
|
Loading…
Reference in New Issue
Block a user