diff options
Diffstat (limited to 'var/spack/repos/builtin/packages/py-charm4py/package.py')
-rw-r--r-- | var/spack/repos/builtin/packages/py-charm4py/package.py | 37 |
1 files changed, 19 insertions, 18 deletions
diff --git a/var/spack/repos/builtin/packages/py-charm4py/package.py b/var/spack/repos/builtin/packages/py-charm4py/package.py index cca34d9049..63c2423859 100644 --- a/var/spack/repos/builtin/packages/py-charm4py/package.py +++ b/var/spack/repos/builtin/packages/py-charm4py/package.py @@ -21,23 +21,25 @@ class PyCharm4py(PythonPackage): # Add a list of GitHub accounts to # notify when the package is updated. - maintainers = ['payerle'] + maintainers = ["payerle"] - version('1.0', sha256='8ddb9f021b7379fde94b28c31f4ab6a60ced2c2a207a2d75ce57cb91b6be92bc') + version("1.0", sha256="8ddb9f021b7379fde94b28c31f4ab6a60ced2c2a207a2d75ce57cb91b6be92bc") - variant('mpi', default=True, - description='build Charm++ library with the MPI instead of TCP' - ' communication layer') + variant( + "mpi", + default=True, + description="build Charm++ library with the MPI instead of TCP" " communication layer", + ) # Builds its own charm++, so no charmpp dependency - depends_on('python@2.7:2.8,3.4:', type=('build', 'run')) - depends_on('py-setuptools', type='build') - depends_on('py-cython', type='build') - depends_on('py-cffi@1.7:', type='build') - depends_on('py-numpy@1.10.0:', type=('build', 'run')) - depends_on('py-greenlet', type=('build', 'run')) - depends_on('cuda') - depends_on('mpi', when='+mpi') + depends_on("python@2.7:2.8,3.4:", type=("build", "run")) + depends_on("py-setuptools", type="build") + depends_on("py-cython", type="build") + depends_on("py-cffi@1.7:", type="build") + depends_on("py-numpy@1.10.0:", type=("build", "run")) + depends_on("py-greenlet", type=("build", "run")) + depends_on("cuda") + depends_on("mpi", when="+mpi") # setup.py builds its own charm++, but libcharm.so # ends up with a cuda dependency causing unresolved symbol errors @@ -52,17 +54,16 @@ class PyCharm4py(PythonPackage): # # The patch to the Makefile adds SPACK_CHARM4PY_EXTRALIBS to the link # arguments. This needs to be set in the environment to be effective. - patch('py-charm4py.makefile.patch', when='@1.0') + patch("py-charm4py.makefile.patch", when="@1.0") # This sets the SPACK_CHARM4PY_EXTRALIBS env var which the # py-charm4py.makefile.patch adds to the build/link command for # libcharm.so. def setup_build_environment(self, env): - env.set('SPACK_CHARM4PY_EXTRALIBS', - self.spec['cuda'].libs.ld_flags) + env.set("SPACK_CHARM4PY_EXTRALIBS", self.spec["cuda"].libs.ld_flags) def install_options(self, spec, prefix): args = [] - if '+mpi' in spec: - args.append('--mpi') + if "+mpi" in spec: + args.append("--mpi") return args |