Commit f716e9ba by Toby Lawrence

Attempt to install and use PyPy for our virtual environment.

parent b4569349
......@@ -20,7 +20,10 @@
EDX_ANSIBLE_DUMP_VARS: false
edxapp_pypy_ppa: "ppa:pypy/ppa"
edx_ansible_debian_pkgs:
- pypy
- python-pip
- python-apt
- libmysqlclient-dev
......
......@@ -45,6 +45,13 @@
tags:
- install:base
# adding pypy repo
- name: add ppas for current versions of pypy
apt_repository: repo="{{ edxapp_pypy_ppa }}"
tags:
- install
- install:base
- name: install a bunch of system packages on which edx_ansible relies
apt: pkg={{','.join(edx_ansible_debian_pkgs)}} state=present update_cache=true
tags:
......
......@@ -584,6 +584,7 @@ EDXAPP_SESSION_COOKIE_SECURE: false
edxapp_data_dir: "{{ COMMON_DATA_DIR }}/edxapp"
edxapp_app_dir: "{{ COMMON_APP_DIR }}/edxapp"
edxapp_log_dir: "{{ COMMON_LOG_DIR }}/edxapp"
edxapp_pypy_bin: "/usr/lib/pypy/bin/pypy-c"
edxapp_venvs_dir: "{{ edxapp_app_dir }}/venvs"
edxapp_venv_dir: "{{ edxapp_venvs_dir }}/edxapp"
edxapp_venv_bin: "{{ edxapp_venv_dir }}/bin"
......
......@@ -177,7 +177,7 @@
- name: Create the virtualenv to install the Python requirements
command: >
virtualenv {{ edxapp_venv_dir }}
virtualenv --python={{ edxapp_pypy_bin }} {{ edxapp_venv_dir }}
chdir={{ edxapp_code_dir }}
creates={{ edxapp_venv_dir }}/bin/pip
sudo_user: "{{ edxapp_user }}"
......
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