summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorEnrico Usai <10634438+enrico-usai@users.noreply.github.com>2021-12-30 18:53:28 +0100
committerGitHub <noreply@github.com>2021-12-30 11:53:28 -0600
commitc06aaebefdffc0d8e0a560377a82820bb1bdbad5 (patch)
treee50e23e8cd3cc9b8129c26bbcae6b14a4f9542e3 /var
parentc2e1a12cdf44edd7f29e465bbdfdc511b97d9669 (diff)
downloadspack-c06aaebefdffc0d8e0a560377a82820bb1bdbad5.tar.gz
spack-c06aaebefdffc0d8e0a560377a82820bb1bdbad5.tar.bz2
spack-c06aaebefdffc0d8e0a560377a82820bb1bdbad5.tar.xz
spack-c06aaebefdffc0d8e0a560377a82820bb1bdbad5.zip
Fix pyyaml dependency conflicts (#28177)
For versions of aws-parallelcluster >= 2.9, the pyyaml dependency had to be >= 5.3.1 and == 5.1.2 at the same time making impossible to install ParallelCluster >= 2.9 from spack repository. See issue: https://github.com/spack/spack/issues/28172 Fixed by limiting pyyaml 5.1.2 version to aws-parallelcluster < 2.8, according to this commit: https://github.com/aws/aws-parallelcluster/commit/7255d314b7dfc186fc44afdb42aa6e9b1fae39e7 Tested with a manual installation of aws-parallelcluster@2.11.4
Diffstat (limited to 'var')
-rw-r--r--var/spack/repos/builtin/packages/aws-parallelcluster/package.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/var/spack/repos/builtin/packages/aws-parallelcluster/package.py b/var/spack/repos/builtin/packages/aws-parallelcluster/package.py
index f1f8df2269..76cb3aa0e0 100644
--- a/var/spack/repos/builtin/packages/aws-parallelcluster/package.py
+++ b/var/spack/repos/builtin/packages/aws-parallelcluster/package.py
@@ -53,8 +53,11 @@ class AwsParallelcluster(PythonPackage):
depends_on('py-tabulate@0.8.5', when='@2.9: ^python@3.0:3.4', type=('build', 'run'))
depends_on('py-tabulate@0.8.2:0.8.7', when='@2.9: ^python@:2,3.5:', type=('build', 'run'))
- depends_on('py-pyyaml@5.2', when='@2.6:2.8 ^python@3.0:3.4', type=('build', 'run'))
- depends_on('py-pyyaml@5.3.1:', when='@2.9: ^python@:2,3.5:', type=('build', 'run'))
+ depends_on('py-pyyaml@5.3.1:', when='@2.11:', type=('build', 'run'))
+ depends_on('py-pyyaml@5.3.1:', when='@2.9:2.10 ^python@:2,3.5:', type=('build', 'run'))
+ depends_on('py-pyyaml@5.2', when='@2.6:2.10 ^python@3.0:3.4', type=('build', 'run'))
+ depends_on('py-pyyaml@5.1.2:', when='@2.6:2.8 ^python@:2,3.5:', type=('build', 'run'))
+ depends_on('py-pyyaml@5.1.2:', when='@:2.5', type=('build', 'run'))
depends_on('py-jinja2@2.10.1', when='@2.9: ^python@3.0:3.4', type=('build', 'run'))
depends_on('py-jinja2@2.11.0:', when='@2.9: ^python@:2,3.5:', type=('build', 'run'))
@@ -67,9 +70,6 @@ class AwsParallelcluster(PythonPackage):
depends_on('py-enum34@1.1.6:', when='^python@:3.3', type=('build', 'run'))
- depends_on('py-pyyaml@5.1.2', when='@2.6: ^python@:2,3.5:', type=('build', 'run'))
- depends_on('py-pyyaml@5.1.2:', when='@:2.5', type=('build', 'run'))
-
# https://github.com/aws/aws-parallelcluster/pull/1633
patch('enum34.patch', when='@:2.5.1')