summaryrefslogtreecommitdiff
path: root/lib/spack/spack/cmd/diy.py
blob: 186745d80c086a6e1a36479b5eac867f45c6a626 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# Copyright 2013-2020 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.dev_build
import llnl.util.tty as tty

description = "DEPRECATED: do-it-yourself: build from local source directory"
section = "build"
level = "long"


def setup_parser(subparser):
    spack.cmd.dev_build.setup_parser(subparser)


def diy(self, args):
    tty.warn("`spack diy` has been renamed to `spack dev-build`."
             "The `diy` command will be removed in a future version of Spack")
    spack.cmd.dev_build.dev_build(self, args)