summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorRobert Cohn <rscohn2@gmail.com>2021-06-14 13:47:44 -0400
committerGitHub <noreply@github.com>2021-06-14 10:47:44 -0700
commitd993ee7972ff706056ee6d66afa47776eb3e72c6 (patch)
tree99f5d6edbe5a9982e83955d18cfe5c8127b6284a /lib
parent22fe56ad2489eb242d5606dd55a19372b8721722 (diff)
downloadspack-d993ee7972ff706056ee6d66afa47776eb3e72c6.tar.gz
spack-d993ee7972ff706056ee6d66afa47776eb3e72c6.tar.bz2
spack-d993ee7972ff706056ee6d66afa47776eb3e72c6.tar.xz
spack-d993ee7972ff706056ee6d66afa47776eb3e72c6.zip
oneAPI packages: fix install for python2 (#24296)
Fix platform detection logic to work for Python 2 and 3
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/spack/build_systems/oneapi.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/spack/spack/build_systems/oneapi.py b/lib/spack/spack/build_systems/oneapi.py
index 0844ff5d82..41e337cb70 100644
--- a/lib/spack/spack/build_systems/oneapi.py
+++ b/lib/spack/spack/build_systems/oneapi.py
@@ -9,7 +9,7 @@
import getpass
import shutil
-from sys import platform
+import platform
from os.path import basename, dirname, isdir
from spack.package import Package
@@ -48,7 +48,7 @@ class IntelOneApiPackage(Package):
if installer_path is None:
installer_path = basename(self.url_for_version(spec.version))
- if platform == 'linux':
+ if platform.system() == 'Linux':
# Intel installer assumes and enforces that all components
# are installed into a single prefix. Spack wants to
# install each component in a separate prefix. The