oneAPI packages: fix install for python2 (#24296)

Fix platform detection logic to work for Python 2 and 3
This commit is contained in:
Robert Cohn
2021-06-14 13:47:44 -04:00
committed by GitHub
parent 22fe56ad24
commit d993ee7972
11 changed files with 22 additions and 22 deletions

View File

@@ -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 @@ def install(self, spec, prefix, installer_path=None):
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