2016-03-14 17:57:40 +08:00
|
|
|
---
|
|
|
|
- name: download python
|
|
|
|
raw: cd $HOME && wget -O - {{coreos_pypy_url}} |tar -xjf -
|
|
|
|
|
2016-11-27 00:48:06 +08:00
|
|
|
- name: create pypy_directory
|
2016-06-28 18:11:42 +08:00
|
|
|
raw: mkdir -p {{pypy_binary_directory}}
|
|
|
|
|
2016-03-14 17:57:40 +08:00
|
|
|
- name: move pypy to pypy_install_directory
|
|
|
|
raw: mv $HOME/pypy-{{coreos_pypy_version}}-{{coreos_pypy_arch}} {{pypy_directory}}
|
|
|
|
|
|
|
|
- name: create local temp directory
|
|
|
|
local_action: raw mkdir -p {{local_temp_directory}}
|
2016-03-22 23:58:20 +08:00
|
|
|
become: no
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: prepare python executable
|
|
|
|
local_action: template src=install_python.sh.j2 dest={{local_temp_directory}}/install_python.sh
|
2016-03-22 23:58:20 +08:00
|
|
|
become: no
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: fix library
|
2016-03-15 00:51:26 +08:00
|
|
|
raw: ln -s /lib64/libncurses.so.5.9 {{pypy_directory}}/lib_pypy/libtinfo.so.5
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: run install_python.sh
|
|
|
|
script: "{{local_temp_directory}}/install_python.sh"
|
|
|
|
|
|
|
|
- name: add execute permission
|
2016-03-15 00:51:26 +08:00
|
|
|
raw: chmod a+x {{pypy_directory}}/python
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: move python to binary directory
|
2016-03-15 00:51:26 +08:00
|
|
|
raw: mv {{pypy_directory}}/python {{pypy_binary_directory}}/python
|
2016-03-14 17:57:40 +08:00
|
|
|
|
|
|
|
- name: create .python
|
|
|
|
raw: touch $HOME/.python
|
|
|
|
|
|
|
|
- name: remove install_python.sh
|
|
|
|
local_action: file path="{{local_temp_directory}}/install_python.sh" state=absent
|
2016-03-22 23:58:20 +08:00
|
|
|
become: no
|