spack: `depends_on(..., when="^python@:2")` does not work
I’m creating a series of packages to get jupyter notebooks working in spack.
One such package is python tornado.
I’ve created this package and added the line:
depends_on('py-backports_abc', when="^python@:3", type="nolink")
among others.
I’ve created the package py-backports_abc as well. When I try to install py-tornado, I get the following baffling error message:
spack install py-tornado ^python@2.7.12
==> Error: py-tornado does not depend on py-backports_abc
I don’t understand why spack is giving this error.
About this issue
- Original URL
- State: closed
- Created 10 years ago
- Comments: 22 (22 by maintainers)
But yeah, you should definitely start with #2122 and work from there. It was pretty close to completion. Just remove the changes to
py-scipyas they are no longer relevant.Did you mean @jppelteret? I don’t recall these
@krafczyk : maybe create a work-in-progress PR where one could see those two packages and how they don’t work? btw, both (!) are already here https://github.com/LLNL/spack/pull/2122 . So maybe you take those commits and work you things on top?
I’m the one who added those dependencies, specifically for
py-flake8,py-enum34, andpy-configparser. It definitely used to work.FYI, up-for-grabs related PRs which could save some time https://github.com/LLNL/spack/pull/2122 and https://github.com/LLNL/spack/pull/2128