Skip to content

Commit e94e0ce

Browse files
committed
Version 1.0.0 candidate
1 parent 294da53 commit e94e0ce

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

defaults/main.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ python_binary: "{{python_prefix_dir}}/bin/python"
55

66
python_pip_location: "{{python_prefix_dir}}/bin/pip"
77
python_virtualenv_location: "{{python_prefix_dir}}/bin/virtualenv"
8-
python_setuptools_version: # default to latest
9-
python_virtualenv_version: # default to latest
8+
# python_setuptools_version: # default to latest
9+
# python_virtualenv_version: # default to latest
1010

1111
python_source_url: "http://www.python.org/ftp/python"
1212
python_source_version: "2.7.6"

tasks/pip.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@
99
mode: 0644
1010

1111
- name: python | pip | install pip
12-
command: "{{pyton_binary}} get-pip.py"
13-
creates: {{python_pip_binary}}
12+
command: python /tmp/get-pip.py creates="{{python_pip_location}}"
1413

1514
- name: python | pip | update setuptools
1615
pip:
17-
name: "setuptools"
18-
version: "{{python_setuptools_version | default()}}"
19-
state: installed
16+
name: "setuptools{% if python_setuptools_version is defined %}=={{python_setuptools_version}}{% endif %}"
17+
state: present

tasks/virtualenv.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,5 @@
22

33
- name: python | virtualenv | install virtualenv
44
pip:
5-
name: "setuptools"
6-
version: "{{python_virtualenv_version | default()}}"
7-
state: installed
5+
name: "virtualenv{% if python_virtualenv_version is defined %}=={{python_virtualenv_version}}{% endif %}"
6+
state: present

0 commit comments

Comments
 (0)