summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoreugeneswalker <38933153+eugeneswalker@users.noreply.github.com>2019-09-26 10:23:59 -0700
committerPatrick Gartung <gartung@fnal.gov>2019-09-26 12:23:59 -0500
commit950338aa92545aedde357e15929be672c113afb7 (patch)
treeffefe70e54a5d897fd5ccbd894a0f45929a97365
parent321e956fa94d3e5faf9c96c249f25275c7aa60ca (diff)
downloadspack-950338aa92545aedde357e15929be672c113afb7.tar.gz
spack-950338aa92545aedde357e15929be672c113afb7.tar.bz2
spack-950338aa92545aedde357e15929be672c113afb7.tar.xz
spack-950338aa92545aedde357e15929be672c113afb7.zip
add --no-deps opt to `buildcache-create` (#12956)
-rw-r--r--lib/spack/spack/cmd/buildcache.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/spack/spack/cmd/buildcache.py b/lib/spack/spack/cmd/buildcache.py
index 5d5e693319..5f26fb8ef9 100644
--- a/lib/spack/spack/cmd/buildcache.py
+++ b/lib/spack/spack/cmd/buildcache.py
@@ -61,6 +61,8 @@ def setup_parser(subparser):
create.add_argument(
'packages', nargs=argparse.REMAINDER,
help="specs of packages to create buildcache for")
+ create.add_argument('--no-deps', action='store_true', default='false',
+ help='Create buildcache entry wo/ dependencies')
create.set_defaults(func=createtarball)
install = subparsers.add_parser('install', help=installtarball.__doc__)
@@ -333,6 +335,8 @@ def createtarball(args):
else:
tty.debug('adding matching spec %s' % match.format())
specs.add(match)
+ if args.no_deps is True:
+ continue
tty.debug('recursing dependencies')
for d, node in match.traverse(order='post',
depth=True,