python.yml 847 Bytes
Newer Older
julian.gethmann's avatar
julian.gethmann committed
1 2
---
- name: Software for dependency installation
3 4
  dnf:
    name: "{{ item }}"
julian.gethmann's avatar
julian.gethmann committed
5
    state: present
julian.gethmann's avatar
julian.gethmann committed
6 7
  become: yes
  with_items:
8 9 10 11 12 13 14 15 16 17
  - gcc
  - gcc-c++
  - glibc-devel.x86_64
  - openssl-devel
  # - atlas-devel
  - python-devel
  - lapack-devel
  - numpy-f2py
  # iminuit
  - redhat-rpm-config
julian.gethmann's avatar
julian.gethmann committed
18 19 20
  when: ansible_distribution == 'Fedora'

- name: "Install Python stack for scientific purposes (Distribution)"
21 22
  package:
    name: "{{ item }}"
julian.gethmann's avatar
julian.gethmann committed
23
    state: present
julian.gethmann's avatar
julian.gethmann committed
24
  become: yes
julian.gethmann's avatar
julian.gethmann committed
25
  with_items:
julian.gethmann's avatar
julian.gethmann committed
26 27 28 29
  - "{{ python2pkg }}"
  - "{{ python3pkg }}"

- name: install pip packages Python 2
30 31
  pip:
    name: "{{ item }}"
julian.gethmann's avatar
julian.gethmann committed
32
    state: present
julian.gethmann's avatar
julian.gethmann committed
33 34 35 36
  become: yes
  with_items: "{{python2pip}}"

- name: install pip packages Python 2
julian.gethmann's avatar
julian.gethmann committed
37
  become: yes
38
  pip:
julian.gethmann's avatar
julian.gethmann committed
39
    executable: "{{ pip3bin }}"
40
    name: "{{ item }}"
julian.gethmann's avatar
julian.gethmann committed
41
    state: present
julian.gethmann's avatar
julian.gethmann committed
42
  with_items: "{{python3pip}}"
43 44
  tags:
    - python3