Skip to content

Commit

Permalink
fix(install): Install dev packages for Arm 64-bit
Browse files Browse the repository at this point in the history
Until psycopg2-binary is available for aarch64 (Arm 64-bit), we'll need libpq and libssl dev packages to build psycopg2 from source

Fixes frappe#1084
  • Loading branch information
ceefour authored Oct 3, 2020
1 parent d9521b4 commit df0562d
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions install.py
Original file line number Diff line number Diff line change
Expand Up @@ -156,6 +156,14 @@ def install_prerequisites():
'sudo yum install -y epel-release redhat-lsb-core git python-setuptools python-devel openssl-devel libffi-devel'
]
})

# until psycopg2-binary is available for aarch64 (Arm 64-bit), we'll need libpq and libssl dev packages to build psycopg2 from source
if platform.machine() == 'aarch64':
log("Installing libpq and libssl dev packages to build psycopg2 for aarch64...")
run_os_command({
'apt-get': ['sudo apt-get install -y libpq-dev libssl-dev'],
'yum': ['sudo yum install -y libpq-devel openssl-devel']
})

install_package('curl')
install_package('wget')
Expand Down

0 comments on commit df0562d

Please sign in to comment.