-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Document how to add conditional dependencies #510
Copy link
Copy link
Closed
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation
Description
@mathstuf :
On Tue, Mar 08, 2016 at 14:27:50 -0500, Elizabeth Fischer wrote:
Not sure if Spack can do this, I didn't find anything in the docs that says
it can...Suppose I have library B, which depends on A. Different versions of B
require specific versions of A. For example:[email protected] requires [email protected]:1.3 [email protected] requires [email protected]:How would I write a package.py file encoding this version-dependent
dependency information? The normal way these things are written, the
depends_on() statement is written before the B's version number is known.
Would:
depends_on('[email protected]:1.3', when='@1.0')
depends_on('[email protected]:', when='@2.0')
not work?
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
documentationImprovements or additions to documentationImprovements or additions to documentation