summaryrefslogtreecommitdiff
path: root/roles/ocropuser/tasks/ocropus.yml
blob: 51025e633e4851fc68850c94b988c3cae7f3a0a7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
---
# Installs ocropus

- name: Install ocropus dependencies
  package: name={{ item }} state=present
  with_items:
    - git
    - python-lxml
    - python-pillow
    - python2-pip
    - scipy
    - tkinter

- name: Install extra dependencies with pip (as user)
  pip: name={{ item }} extra_args="--user -U"
  become: no
  with_items:
    - matplotlib
    - numpy

- name: Clone ocropus repository
  git:
    repo: https://github.com/tmbdev/ocropy/
    dest: /home/ec2-user/src/ocropy
    depth: 1
  become: no
  register: ocroclone

- name: Install ocropus
  command: python setup.py install
  args:
    chdir: /home/ec2-user/src/ocropy
  when: ocroclone.changed