alces-software / gridware

tool for compilation and installation of applications and libraries from the Alces Gridware software library
0 stars 0 forks source link

Installing distro dependencies fails after python module loaded #23

Closed mjtko closed 6 years ago

mjtko commented 6 years ago

Because of the unique way yum uses Python, and the fact that the Gridware apps/python module modifies PYTHONPATH when it is loaded, distro dependencies required to be installed via yum fail to do so after the apps/python module is loaded:

e.g.:

apps/ase/3.15.0/python-2.7.8+numpy-1.10.4+matplotlib-1.5.1
 | -- apps/python/2.7.8/gcc-5.5.0
 |    | -- libs/gcc/5.5.0
 |    |    * --> OK
 |    * --> OK
 | -- libs/numpy/1.10.4/gcc-5.5.0+atlas-3.10.3+python-2.7.8
 |    | -- libs/gcc/5.5.0 ... SKIPPED (already loaded)
 |    | -- libs/atlas/3.10.3/gcc-5.5.0
 |    |    | -- libs/gcc/5.5.0 ... SKIPPED (already loaded)
 |    |    * --> OK
 |    | -- apps/python/2.7.8/gcc-5.5.0 ... SKIPPED (already loaded)
 |    * --> OK
 | -- libs/matplotlib/1.5.1/gcc-5.5.0+python-2.7.8+numpy-1.10.4FAILED
FAILED
FAILED

 |    | -- libs/gcc/5.5.0 ... SKIPPED (already loaded)
 |    | -- apps/python/2.7.8/gcc-5.5.0 ... SKIPPED (already loaded)
 |    | -- libs/numpy/1.10.4/gcc-5.5.0+atlas-3.10.3+python-2.7.8 ... SKIPPED (already loaded)
 |    * --> OK
 |
 OK