summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorRoss Miller <rgmiller@ornl.gov>2019-09-27 20:19:36 -0400
committerPeter Scheibel <scheibel1@llnl.gov>2019-09-27 17:19:36 -0700
commitc49c37af9b3664e6807169ede5dfb4ecd03643ab (patch)
treeffe2a80b11014f4d5269f9e181ebcc2671ececef /var
parentb4c28182dcd27639eaa5233334427fd416d9e674 (diff)
downloadspack-c49c37af9b3664e6807169ede5dfb4ecd03643ab.tar.gz
spack-c49c37af9b3664e6807169ede5dfb4ecd03643ab.tar.bz2
spack-c49c37af9b3664e6807169ede5dfb4ecd03643ab.tar.xz
spack-c49c37af9b3664e6807169ede5dfb4ecd03643ab.zip
py-adios package: restrict python dependency to <=3.6.x (#12932)
The adios code (currently) won't compile against the Python 3.7 C API. This change adds a dependency on 3.6 or less.
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/py-adios/package.py8
1 files changed, 8 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
index a297f39fc9..2149c0e223 100644
--- a/var/spack/repos/builtin/packages/py-adios/package.py
+++ b/var/spack/repos/builtin/packages/py-adios/package.py
@@ -35,6 +35,14 @@ class PyAdios(PythonPackage):
when='@{0} +mpi'.format(v),
type=['build', 'link', 'run'])
+ # NOTE: this dependency is a work-around for a bug in Adios itself.
+ # Specifically, Adios uses code that was generated by Cython 0.28.2.
+ # This code won't compile against the Python 3.7 C API.
+ # See https://github.com/ornladios/ADIOS/issues/202 and
+ # the first entry under "Bug Fixes" at
+ # https://github.com/cython/cython/blob/0.29.x/CHANGES.rst
+ depends_on('python@:3.6')
+
depends_on('py-numpy', type=['build', 'run'])
depends_on('mpi', when='+mpi')
depends_on('py-mpi4py', type=['run'], when='+mpi')