oneAPI packages: fix install for python2 (#24296)
Fix platform detection logic to work for Python 2 and 3
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user