Fixing the build directory for cardioid. (#16640)

* Fixing the build directory for cardioid.

* These imports are no longer needed due to deletions.

Co-authored-by: Robert Blake <rob.c.blake.3@gmail.com>
This commit is contained in:
Robert Blake 2020-05-14 18:16:55 -07:00 committed by GitHub
parent 5875bc6d6b
commit b987444871
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -4,8 +4,6 @@
# SPDX-License-Identifier: (Apache-2.0 OR MIT) # SPDX-License-Identifier: (Apache-2.0 OR MIT)
from spack import * from spack import *
import spack.environment as ev
import os
class Cardioid(CMakePackage): class Cardioid(CMakePackage):
@ -32,20 +30,6 @@ class Cardioid(CMakePackage):
depends_on('cmake@3.1:', type='build') depends_on('cmake@3.1:', type='build')
depends_on('perl', type='build') depends_on('perl', type='build')
@property
def build_directory(self):
"""Returns the directory to use when building the package
:return: directory where to build the package
"""
env = ev.get_env(None, 'env status')
if not env:
basename = str(self.spec.arch)
else:
basename = env.name
return os.path.join(self.stage.source_path, "build", basename)
def cmake_args(self): def cmake_args(self):
spec = self.spec spec = self.spec
args = [ args = [