-
- Downloads
Fix for SPACK-13, and satisfies() now handles deps.
Added more test cases for multimethods. In doing so, (re)discovered that satisfies() really needs to handle dependencies properly. Implemented support for dependencies in satisfies, but constrain() now isn't consistent (as we do not currently constrain deps), so need to implement that. Virtual dependency support probably needs some deeper thought. i.e., there is probably an intermediate DAG form that would make the needed checks easier. Right now we have to build ProviderIndexes to figure out how virtual dependencies are set up. If the vdep were preserved in the DAG, then we could just check for things like incompatible providers directly.
Showing
- lib/spack/spack/compilers/__init__.py 4 additions, 0 deletionslib/spack/spack/compilers/__init__.py
- lib/spack/spack/multimethod.py 30 additions, 12 deletionslib/spack/spack/multimethod.py
- lib/spack/spack/packages/__init__.py 38 additions, 5 deletionslib/spack/spack/packages/__init__.py
- lib/spack/spack/spec.py 83 additions, 25 deletionslib/spack/spack/spec.py
- lib/spack/spack/test/__init__.py 1 addition, 0 deletionslib/spack/spack/test/__init__.py
- lib/spack/spack/test/mock_packages/multimethod.py 62 additions, 0 deletionslib/spack/spack/test/mock_packages/multimethod.py
- lib/spack/spack/test/mock_packages/zmpi.py 1 addition, 1 deletionlib/spack/spack/test/mock_packages/zmpi.py
- lib/spack/spack/test/multimethod.py 53 additions, 3 deletionslib/spack/spack/test/multimethod.py
- lib/spack/spack/test/spec_dag.py 5 additions, 5 deletionslib/spack/spack/test/spec_dag.py
- lib/spack/spack/test/spec_semantics.py 141 additions, 0 deletionslib/spack/spack/test/spec_semantics.py
- lib/spack/spack/test/spec_syntax.py 1 addition, 70 deletionslib/spack/spack/test/spec_syntax.py
Loading
Please register or sign in to comment