Skip to content

Commit

Permalink
Use get-pip.py instead of ez_setup.py
Browse files Browse the repository at this point in the history
Because this method is DEPRECATED. Check pypa/setuptools#581 for more details.
  • Loading branch information
tersmitten committed Mar 13, 2017
1 parent 8c0a014 commit ef132f7
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 60 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Build Status](https://travis-ci.org/Oefenweb/ansible-pip.svg?branch=master)](https://travis-ci.org/Oefenweb/ansible-pip) [![Ansible Galaxy](http://img.shields.io/badge/ansible--galaxy-pip-blue.svg)](https://galaxy.ansible.com/tersmitten/pip)

Set up (the latest version of) [pip](https://pypi.python.org/pypi/pip) and [setuptools](https://pypi.python.org/pypi/setuptools) in Debian-like systems.
Set up (the latest version of) [pip](https://pypi.python.org/pypi/pip), [wheel](https://packaging.python.org/key_projects/#wheel) and [setuptools](https://packaging.python.org/key_projects/#setuptools) in Debian-like systems.

#### Requirements

Expand Down
1 change: 0 additions & 1 deletion defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
# defaults file for pip
---
pip_self_update: true
2 changes: 1 addition & 1 deletion meta/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
galaxy_info:
author: Mischa ter Smitten
company: Oefenweb.nl B.V.
description: Set up (the latest version of) pip and setuptools in Debian-like systems
description: Set up (the latest version of) pip, setuptools and wheel in Debian-like systems
license: MIT
min_ansible_version: 1.9.6
platforms:
Expand Down
22 changes: 14 additions & 8 deletions tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,20 @@
- pip
- pip-directory

- include: setuptools.yml
- name: download (latest) pip
get_url:
url: "{{ pip_download_url }}"
dest: "{{ pip_download_path }}/{{ pip_download_url | basename }}"
owner: root
group: root
mode: 0644
force: true
register: _download_latest
tags:
- configuration
- pip
- pip-setuptools
- pip-pip-download

- include: pip.yml
- name: install (latest) pip (setuptools and wheel)
command: python {{ _download_latest.dest }}
when: _download_latest | changed
tags:
- configuration
- pip
- pip-pip
- pip-pip-install
14 changes: 0 additions & 14 deletions tasks/pip.yml

This file was deleted.

34 changes: 0 additions & 34 deletions tasks/setuptools.yml

This file was deleted.

2 changes: 1 addition & 1 deletion vars/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ pip_dependencies:
- curl

pip_download_path: /var/lib/ansible/pip/downloads
pip_download_url: https://bootstrap.pypa.io/ez_setup.py
pip_download_url: https://bootstrap.pypa.io/get-pip.py

0 comments on commit ef132f7

Please sign in to comment.