Skip to content

depends_on(..., when="^python@:2") does not work #2310

@krafczyk

Description

@krafczyk

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 ^[email protected]
==> Error: py-tornado does not depend on py-backports_abc

I don't understand why spack is giving this error.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions