diff options
author | Adam J. Stewart <ajstewart426@gmail.com> | 2017-01-18 20:49:48 -0600 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2017-01-18 18:49:48 -0800 |
commit | 4dad5aab8402f787afd8f9e440ac4bbbecd4b80f (patch) | |
tree | 8d8cce1675ab54a756261384f87e761955e16f3c /lib | |
parent | 9b7001fda1d9738a65da3e02e5a5014391bd7850 (diff) | |
download | spack-4dad5aab8402f787afd8f9e440ac4bbbecd4b80f.tar.gz spack-4dad5aab8402f787afd8f9e440ac4bbbecd4b80f.tar.bz2 spack-4dad5aab8402f787afd8f9e440ac4bbbecd4b80f.tar.xz spack-4dad5aab8402f787afd8f9e440ac4bbbecd4b80f.zip |
Add spack edit option for build systems (#2865)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/spack/__init__.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/cmd/edit.py | 4 |
2 files changed, 5 insertions, 0 deletions
diff --git a/lib/spack/spack/__init__.py b/lib/spack/spack/__init__.py index 34a7b01616..0b1934112e 100644 --- a/lib/spack/spack/__init__.py +++ b/lib/spack/spack/__init__.py @@ -46,6 +46,7 @@ build_env_path = join_path(lib_path, "env") module_path = join_path(lib_path, "spack") platform_path = join_path(module_path, 'platforms') compilers_path = join_path(module_path, "compilers") +build_systems_path = join_path(module_path, 'build_systems') operating_system_path = join_path(module_path, 'operating_systems') test_path = join_path(module_path, "test") hooks_path = join_path(module_path, "hooks") diff --git a/lib/spack/spack/cmd/edit.py b/lib/spack/spack/cmd/edit.py index 77f23333b6..23fd307ab4 100644 --- a/lib/spack/spack/cmd/edit.py +++ b/lib/spack/spack/cmd/edit.py @@ -70,6 +70,10 @@ def setup_parser(subparser): # Various types of Spack files that can be edited # Edits package files by default excl_args.add_argument( + '-b', '--build-system', dest='path', action='store_const', + const=spack.build_systems_path, + help="Edit the build system with the supplied name.") + excl_args.add_argument( '-c', '--command', dest='path', action='store_const', const=spack.cmd.command_path, help="Edit the command with the supplied name.") |