summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/build_env.py
blob: 2083b4a5b2673ac6262f12b4b82b5f60f786dda4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# Copyright 2013-2024 Lawrence Livermore National Security, LLC and other
# Spack Project Developers. See the top-level COPYRIGHT file for details.
#
# SPDX-License-Identifier: (Apache-2.0 OR MIT)
import spack.cmd.common.env_utility as env_utility
from spack.context import Context

description = (
    "run a command in a spec's install environment, or dump its environment to screen or file"
)
section = "build"
level = "long"

setup_parser = env_utility.setup_parser


def build_env(parser, args):
    env_utility.emulate_env_utility("build-env", Context.BUILD, args)