Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
C
configuration
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
edx
configuration
Commits
a4cc6885
Commit
a4cc6885
authored
Dec 29, 2015
by
Omar Al-Ithawi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Ubuntu 14.04 support: fixed bad paths for libblas and liblapac alternatives.
parent
989a2199
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
27 additions
and
7 deletions
+27
-7
playbooks/roles/edxapp/tasks/python_sandbox_env.yml
+27
-7
No files found.
playbooks/roles/edxapp/tasks/python_sandbox_env.yml
View file @
a4cc6885
# 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 }}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment