summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorAxel Huebl <axel.huebl@plasma.ninja>2018-01-03 04:37:59 +0100
committerAdam J. Stewart <ajstewart426@gmail.com>2018-01-02 21:37:59 -0600
commit5d2f752c1b0a514c0971bd19b08eee51c2425553 (patch)
treea7b86c27c25b1500a3a38bb6a977af9d528a7bad /var
parent3c637105321a8d005e4c0324da7f84a4895aed66 (diff)
downloadspack-5d2f752c1b0a514c0971bd19b08eee51c2425553.tar.gz
spack-5d2f752c1b0a514c0971bd19b08eee51c2425553.tar.bz2
spack-5d2f752c1b0a514c0971bd19b08eee51c2425553.tar.xz
spack-5d2f752c1b0a514c0971bd19b08eee51c2425553.zip
New Package: py-adios (#5686)
The ADIOS1 numpy bindings depend on an installed, fully loaded ADIOS C library + its config tools to build properly.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-adios/package.py78
1 files changed, 78 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-adios/package.py b/var/spack/repos/builtin/packages/py-adios/package.py
new file mode 100644
index 0000000000..209e6d60fe
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-adios/package.py
@@ -0,0 +1,78 @@
+##############################################################################
+# Copyright (c) 2013-2017, Lawrence Livermore National Security, LLC.
+# Produced at the Lawrence Livermore National Laboratory.
+#
+# This file is part of Spack.
+# Created by Todd Gamblin, tgamblin@llnl.gov, All rights reserved.
+# LLNL-CODE-647188
+#
+# For details, see https://github.com/spack/spack
+# Please also see the NOTICE and LICENSE files for our notice and the LGPL.
+#
+# This program is free software; you can redistribute it and/or modify
+# it under the terms of the GNU Lesser General Public License (as
+# published by the Free Software Foundation) version 2.1, February 1999.
+#
+# This program is distributed in the hope that it will be useful, but
+# WITHOUT ANY WARRANTY; without even the IMPLIED WARRANTY OF
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the terms and
+# conditions of the GNU Lesser General Public License for more details.
+#
+# You should have received a copy of the GNU Lesser General Public
+# License along with this program; if not, write to the Free Software
+# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+##############################################################################
+from spack import *
+
+
+class PyAdios(PythonPackage):
+ """NumPy bindings of ADIOS1"""
+
+ homepage = "https://www.olcf.ornl.gov/center-projects/adios/"
+ url = "https://github.com/ornladios/ADIOS/archive/v1.12.0.tar.gz"
+ maintainers = ['ax3l']
+
+ version('develop', git='https://github.com/ornladios/ADIOS.git',
+ branch='master')
+ version('1.13.0', '68af36b821debbdf4748b20320a990ce')
+ version('1.12.0', '84a1c71b6698009224f6f748c5257fc9')
+ version('1.11.1', '5639bfc235e50bf17ba9dafb14ea4185')
+ version('1.11.0', '5eead5b2ccf962f5e6d5f254d29d5238')
+ version('1.10.0', 'eff450a4c0130479417cfd63186957f3')
+ version('1.9.0', '310ff02388bbaa2b1c1710ee970b5678')
+
+ variant('mpi', default=True,
+ description='Enable MPI support')
+
+ for v in ['1.9.0', '1.10.0', '1.11.0', '1.11.1', '1.12.0', '1.13.0',
+ 'develop']:
+ depends_on('adios@{0} ~mpi'.format(v),
+ when='@{0} ~mpi'.format(v),
+ type=['build', 'link', 'run'])
+ depends_on('adios@{0} +mpi'.format(v),
+ when='@{0} +mpi'.format(v),
+ type=['build', 'link', 'run'])
+
+ depends_on('py-numpy', type=['build', 'run'])
+ depends_on('mpi', when='+mpi')
+ depends_on('py-mpi4py', type=['run'], when='+mpi')
+ depends_on('py-cython', type=['build'])
+
+ phases = ['build_clib', 'install']
+ build_directory = 'wrappers/numpy'
+
+ def setup_file(self):
+ """Returns the name of the setup file to use."""
+ if '+mpi' in self.spec:
+ return 'setup_mpi.py'
+ else:
+ return 'setup.py'
+
+ def build_clib(self, spec, prefix):
+ # calls: make [MPI=y] python
+ args = ''
+ if '+mpi' in self.spec:
+ args = 'MPI=y '
+ args += 'python'
+ with working_dir(self.build_directory):
+ make(args)