projections: simplify expression (#46167)
This commit is contained in:
@@ -22,13 +22,8 @@
|
|||||||
import spack.util.spack_json as sjson
|
import spack.util.spack_json as sjson
|
||||||
from spack.error import SpackError
|
from spack.error import SpackError
|
||||||
|
|
||||||
# Note: Posixpath is used here as opposed to
|
|
||||||
# os.path.join due to spack.spec.Spec.format
|
|
||||||
# requiring forward slash path seperators at this stage
|
|
||||||
default_projections = {
|
default_projections = {
|
||||||
"all": posixpath.join(
|
"all": "{architecture}/{compiler.name}-{compiler.version}/{name}-{version}-{hash}"
|
||||||
"{architecture}", "{compiler.name}-{compiler.version}", "{name}-{version}-{hash}"
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user