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

Fix problem with pip3

parent a45732c4
...@@ -14,6 +14,7 @@ python3pkg: ...@@ -14,6 +14,7 @@ python3pkg:
- python3-setuptools - python3-setuptools
- python3-sphinx - python3-sphinx
- python3-tox - python3-tox
- python3-pip
python3pip: python3pip:
- brewer2mpl - brewer2mpl
...@@ -45,3 +46,5 @@ python2pip: ...@@ -45,3 +46,5 @@ python2pip:
- notebook - notebook
- pandas - pandas
- sklearn - sklearn
pip3bin: /usr/local/bin/pip3
...@@ -13,7 +13,7 @@ ...@@ -13,7 +13,7 @@
- name: install fitting via pip3 - name: install fitting via pip3
become: yes become: yes
pip: pip:
executable: pip3 executable: "{{ pip3bin }}"
state: present state: present
name: "{{ item }}" name: "{{ item }}"
with_items: with_items:
......
...@@ -26,19 +26,13 @@ ...@@ -26,19 +26,13 @@
- "{{ python2pkg }}" - "{{ python2pkg }}"
- "{{ python3pkg }}" - "{{ python3pkg }}"
- name: Update setuptools # - name: upgrade pip2 # install --upgrade pip
become: yes # pip:
command: easy_install -U setuptools # name: pip
register: command_result # state: latest
changed_when: not command_result.stdout.find("Adding setuptools") # not working # become: yes
# tags:
- name: upgrade pip2 # install --upgrade pip # - skip_ansible_lint
pip:
name: pip
state: latest
become: yes
tags:
- skip_ansible_lint
- name: install pip packages Python 2 - name: install pip packages Python 2
pip: pip:
...@@ -47,19 +41,19 @@ ...@@ -47,19 +41,19 @@
become: yes become: yes
with_items: "{{python2pip}}" with_items: "{{python2pip}}"
- name: upgrade pip3 # - name: upgrade pip3
pip: # pip:
executable: pip3 # executable: pip-3
state: latest # state: latest
name: pip # name: pip
become: yes # become: yes
tags: # tags:
- skip_ansible_lint # - skip_ansible_lint
- name: install pip packages Python 2 - name: install pip packages Python 2
become: yes
pip: pip:
executable: pip3 executable: "{{ pip3bin }}"
name: "{{ item }}" name: "{{ item }}"
state: present state: present
become: yes
with_items: "{{python3pip}}" 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