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.
This commit is contained in:
		
				
					committed by
					
						
						Peter Scheibel
					
				
			
			
				
	
			
			
			
						parent
						
							b4c28182dc
						
					
				
				
					commit
					c49c37af9b
				
			@@ -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')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user