summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTom Payerle <payerle@umd.edu>2019-01-15 17:42:20 -0500
committerAdam J. Stewart <ajstewart426@gmail.com>2019-01-15 16:42:20 -0600
commit01bd67eb4366f174011a419c4e6a3d16bc4490ff (patch)
tree52ae6d97c65f8b1d2f7353c868015f1f57f745e8 /var
parenteaa340eba71a06772de3e5b286990aa380538a71 (diff)
downloadspack-01bd67eb4366f174011a419c4e6a3d16bc4490ff.tar.gz
spack-01bd67eb4366f174011a419c4e6a3d16bc4490ff.tar.bz2
spack-01bd67eb4366f174011a419c4e6a3d16bc4490ff.tar.xz
spack-01bd67eb4366f174011a419c4e6a3d16bc4490ff.zip
py-modred: New package (#10309)
* py-modred: New package Parallelized python module for finding modal decompositions and reduced order models. * fix license I think? * Add dependency on py-numpy and remove commented out code
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-modred/package.py25
-rw-r--r--var/spack/repos/builtin/packages/py-modred/v2x-setuptools-8.0.patch13
2 files changed, 38 insertions, 0 deletions
diff --git a/var/spack/repos/builtin/packages/py-modred/package.py b/var/spack/repos/builtin/packages/py-modred/package.py
new file mode 100644
index 0000000000..dc408e764a
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-modred/package.py
@@ -0,0 +1,25 @@
+# Copyright 2013-2018 Lawrence Livermore National Security, LLC and other
+# Spack Project Developers. See the top-level COPYRIGHT file for details.
+#
+# SPDX-License-Identifier: (Apache-2.0 OR MIT)
+
+from spack import *
+
+
+class PyModred(PythonPackage):
+ """Modred is a parallelized library for finding
+ modal decompositions and reduced-order models.
+ """
+ homepage = "http://github.com/belson17/modred"
+ git = "https://github.com/belson17/modred.git"
+
+ version('2.0.4', tag='v2.0.4')
+ version('2.0.3', tag='v2.0.3')
+ version('2.0.2', tag='v2.0.2')
+ version('2.0.1', tag='v2.0.1')
+ version('2.0.0', tag='v2.0.0')
+
+ depends_on('py-setuptools', type='build')
+ depends_on('py-numpy', type='run')
+
+ patch('v2x-setuptools-8.0.patch', when='@2: ^py-setuptools@8.0:')
diff --git a/var/spack/repos/builtin/packages/py-modred/v2x-setuptools-8.0.patch b/var/spack/repos/builtin/packages/py-modred/v2x-setuptools-8.0.patch
new file mode 100644
index 0000000000..775be807ac
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-modred/v2x-setuptools-8.0.patch
@@ -0,0 +1,13 @@
+diff -Naur modred-2.0.4/setup.py modred-2.0.4.patched/setup.py
+--- modred-2.0.4/setup.py 2018-12-10 13:54:02.000000000 -0500
++++ modred-2.0.4.patched/setup.py 2018-12-10 13:54:45.000000000 -0500
+@@ -16,7 +16,8 @@
+ with open(os.path.join(here, 'modred/_version.py')) as f:
+ exec(f.read())
+ # Get the development status from the version string
+-parsed_version = parse_version(__version__)
++# parsed_version = parse_version(__version__)
++parsed_version = __version__.split('.')
+ if any(w in ['*a', '*alpha'] for w in parsed_version):
+ devstatus = 'Development Status :: 3 - Alpha'
+ elif any(w in ['*b', '*beta'] for w in parsed_version):