8000 install psycopg2 from source · robeng1/postgres@6803ee7 · GitHub
[go: up one dir, main page]

Skip to content

Commit 6803ee7

Browse files
committed
install psycopg2 from source
required for arm build
1 parent 78df02d commit 6803ee7

File tree

1 file changed

+24
-3
lines changed

1 file changed

+24
-3
lines changed

ansible/tasks/setup-system.yml

Lines changed: 24 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,9 +44,30 @@
4444
src: files/apt_periodic
4545
dest: /etc/apt/apt.conf.d/10periodic
4646

47-
- name: Install psycopg2 to enable ansible postgreSQL features
48-
pip:
49-
name: psycopg2-binary
47+
# Install psycopg2 to enable ansible postgreSQL features
48+
- name: Installing psycopg2 dependencies
49+
become: yes
50+
apt:
51+
pkg:
52+
- libpq-dev
53+
54+
- name: Cloning psycopg2
55+
git:
56+
repo: https://github.com/psycopg/psycopg2.git
57+
dest: /tmp/psycopg2
58+
version: "2_8_6"
59+
become: yes
60+
61+
- name: psycopg2 - build
62+
shell:
63+
cmd: python setup.py build
64+
chdir: /tmp/psycopg2
65+
66+
- name: psycopg2 - install
67+
shell:
68+
cmd: python setup.py install
69+
chdir: /tmp/psycopg2
70+
become: yes
5071

5172
- name: System - Create services.slice
5273
template:

0 commit comments

Comments
 (0)
0