RHEL8 bugfix for unavailability of python.#14252
Conversation
modified: lib/spack/spack/util/environment.py
8591e99 to
137aaca
Compare
greenc-FNAL
left a comment
There was a problem hiding this comment.
Shouldn't we be using sys.executable here anyway?
Also, not strictly relevant to your PR but this function fails miserably for embedded spaces in paths. It should be using Executable with arguments as an array rather than squashing them to a single string and invoking shell().
|
Changed to |
|
Using sys.executable in EnvironmentModifications does not work if the package depends on a specific python package, since in this case the PYTHONHOME environment variable is set in the build environment, and it is not the correct python home when using the sys.executable interpreter, which is the one used for the spack command itself. In this case installing source-bug@0.13.2 works, while installing source-bug@0.13.3 fails: The error is: |
|
@zzotta Can you file a separate bug report out of that comment? |
…ile` (spack#14252)" This reverts commit 96063f9.
Since there is no
pythononRHEL/CentOS-8. Alternatively, one could query the OS version and use that for anif-elseclause.