Commit 4f3d5d38 authored by julian.gethmann's avatar julian.gethmann

Fix problem with pip3

parent a45732c4
......@@ -14,6 +14,7 @@ python3pkg:
- python3-setuptools
- python3-sphinx
- python3-tox
- python3-pip
python3pip:
- brewer2mpl
......@@ -45,3 +46,5 @@ python2pip:
- notebook
- pandas
- sklearn
pip3bin: /usr/local/bin/pip3
......@@ -13,7 +13,7 @@
- name: install fitting via pip3
become: yes
pip:
executable: pip3
executable: "{{ pip3bin }}"
state: present
name: "{{ item }}"
with_items:
......
......@@ -26,19 +26,13 @@
- "{{ python2pkg }}"
- "{{ python3pkg }}"
- name: Update setuptools
become: yes
command: easy_install -U setuptools
register: command_result
changed_when: not command_result.stdout.find("Adding setuptools") # not working
- name: upgrade pip2 # install --upgrade pip
pip:
name: pip
state: latest
become: yes
tags:
- skip_ansible_lint
# - name: upgrade pip2 # install --upgrade pip
# pip:
# name: pip
# state: latest
# become: yes
# tags:
# - skip_ansible_lint
- name: install pip packages Python 2
pip:
......@@ -47,19 +41,19 @@
become: yes
with_items: "{{python2pip}}"
- name: upgrade pip3
pip:
executable: pip3
state: latest
name: pip
become: yes
tags:
- skip_ansible_lint
# - name: upgrade pip3
# pip:
# executable: pip-3
# state: latest
# name: pip
# become: yes
# tags:
# - skip_ansible_lint
- name: install pip packages Python 2
become: yes
pip:
executable: pip3
executable: "{{ pip3bin }}"
name: "{{ item }}"
state: present
become: yes
with_items: "{{python3pip}}"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment