Commit a4cc6885 by Omar Al-Ithawi

Ubuntu 14.04 support: fixed bad paths for libblas and liblapac alternatives.

parent 989a2199
# Set the alternatives this way for blas and lapack to work correctly for the
# Set the alternatives this way for blas and lapack to work correctly for the
# MITx 6.341x course.
# TODO: Switch to using alternatives module in 1.6
- name: code sandbox | Use libblas for 3gf
command: update-alternatives --set libblas.so.3gf /usr/lib/libblas/libblas.so.3gf
- name: code sandbox | Check which `libblas` to use
# The `libblas.so.3gf` exists only in 12.04
stat: path=/usr/lib/libblas/libblas.so.3gf
register: libblas_file
- name: code sandbox | Use libblas.so.3gf in Ubuntu 12.04
alternatives: name=libblas.so.3gf path=/usr/lib/libblas/libblas.so.3gf
when: libblas_file.stat.exists
- name: code sandbox | Use libblas.so.3 in Ubuntu 14.04
alternatives: name=libblas.so.3 path=/usr/lib/libblas/libblas.so.3
when: not libblas_file.stat.exists
- name: code sandbox | Check which `liblapac` to use
# The `liblapack.so.3gf` exists only in 12.04
stat: path=/usr/lib/lapack/liblapack.so.3gf
register: liblapack_file
- name: code sandbox | Use liblapack.so.3gf in Ubuntu 12.04
alternatives: name=liblapack.so.3gf path=/usr/lib/lapack/liblapack.so.3gf
when: liblapack_file.stat.exists
- name: code sandbox | Use liblapack.so.3 in Ubuntu 14.04
alternatives: name=liblapack.so.3 path=/usr/lib/lapack/liblapack.so.3
when: not liblapack_file.stat.exists
# TODO: Switch to using alternatives module in 1.6
- name: code sandbox | Use liblapac for 3gf
command: update-alternatives --set liblapack.so.3gf /usr/lib/lapack/liblapack.so.3gf
- name: code sandbox | Create edxapp sandbox user
user: name={{ edxapp_sandbox_user }} shell=/bin/false home={{ edxapp_sandbox_venv_dir }}
......
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