diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-05-10 11:45:12 -0700 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-05-10 11:45:12 -0700 |
commit | 5d2ee893c406ae5695659507d909df781c41e86f (patch) | |
tree | a98c4125b4efa7dc1d1b4f33ef7ff6b42705a1e6 /lib | |
parent | 29e833dfefe47fa82d3115d23299921643997fbd (diff) | |
download | spack-5d2ee893c406ae5695659507d909df781c41e86f.tar.gz spack-5d2ee893c406ae5695659507d909df781c41e86f.tar.bz2 spack-5d2ee893c406ae5695659507d909df781c41e86f.tar.xz spack-5d2ee893c406ae5695659507d909df781c41e86f.zip |
Remove TODOs for full DAG information.
- specs on disk now include full DAG info
- no need for normalize() kludges() anymore.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/spack/llnl/util/link_tree.py | 1 | ||||
-rw-r--r-- | lib/spack/spack/cmd/activate.py | 8 | ||||
-rw-r--r-- | lib/spack/spack/cmd/deactivate.py | 14 | ||||
-rw-r--r-- | lib/spack/spack/package.py | 5 |
4 files changed, 3 insertions, 25 deletions
diff --git a/lib/spack/llnl/util/link_tree.py b/lib/spack/llnl/util/link_tree.py index 583f077b79..db13b80780 100644 --- a/lib/spack/llnl/util/link_tree.py +++ b/lib/spack/llnl/util/link_tree.py @@ -54,6 +54,7 @@ class LinkTree(object): """Returns the first file in dest that conflicts with src""" kwargs['follow_nonexisting'] = False for src, dest in traverse_tree(self._root, dest_root, **kwargs): + print src, dest if os.path.isdir(src): if os.path.exists(dest) and not os.path.isdir(dest): return dest diff --git a/lib/spack/spack/cmd/activate.py b/lib/spack/spack/cmd/activate.py index 4070baaa70..1004f1f8e6 100644 --- a/lib/spack/spack/cmd/activate.py +++ b/lib/spack/spack/cmd/activate.py @@ -38,17 +38,11 @@ def setup_parser(subparser): def activate(parser, args): - # TODO: shouldn't have to concretize here. Fix DAG issues. - specs = spack.cmd.parse_specs(args.spec, concretize=True) + specs = spack.cmd.parse_specs(args.spec) if len(specs) != 1: tty.die("activate requires one spec. %d given." % len(specs)) - # TODO: remove this hack when DAG info is stored in dir layout. - # This ensures the ext spec is always normalized properly. - spack.db.get(specs[0]) - spec = spack.cmd.disambiguate_spec(specs[0]) - if not spec.package.is_extension: tty.die("%s is not an extension." % spec.name) diff --git a/lib/spack/spack/cmd/deactivate.py b/lib/spack/spack/cmd/deactivate.py index c9a4d4b2f6..e44be41029 100644 --- a/lib/spack/spack/cmd/deactivate.py +++ b/lib/spack/spack/cmd/deactivate.py @@ -44,15 +44,10 @@ def setup_parser(subparser): def deactivate(parser, args): - # TODO: shouldn't have to concretize here. Fix DAG issues. - specs = spack.cmd.parse_specs(args.spec, concretize=True) + specs = spack.cmd.parse_specs(args.spec) if len(specs) != 1: tty.die("deactivate requires one spec. %d given." % len(specs)) - # TODO: remove this hack when DAG info is stored properly. - # This ensures the ext spec is always normalized properly. - spack.db.get(specs[0]) - spec = spack.cmd.disambiguate_spec(specs[0]) pkg = spec.package @@ -67,9 +62,6 @@ def deactivate(parser, args): ext_pkg.do_deactivate(force=True) elif pkg.is_extension: - # TODO: store DAG info properly (see above) - spec.normalize() - if not args.force and not spec.package.activated: tty.die("%s is not activated." % pkg.spec.short_spec) @@ -81,10 +73,6 @@ def deactivate(parser, args): for name in topo_order: espec = index[name] epkg = espec.package - - # TODO: store DAG info properly (see above) - epkg.spec.normalize() - if epkg.extends(pkg.extendee_spec): if epkg.activated or args.force: diff --git a/lib/spack/spack/package.py b/lib/spack/spack/package.py index bbb64cd05b..b0bb1fb7bc 100644 --- a/lib/spack/spack/package.py +++ b/lib/spack/spack/package.py @@ -984,16 +984,11 @@ class Package(object): self._sanity_check_extension() force = kwargs.get('force', False) - # TODO: get rid of this normalize - DAG handling. - self.spec.normalize() - spack.install_layout.check_extension_conflict(self.extendee_spec, self.spec) if not force: for spec in self.spec.traverse(root=False): if spec.package.extends(self.extendee_spec): - # TODO: fix this normalize() requirement -- revisit DAG handling. - spec.package.spec.normalize() if not spec.package.activated: spec.package.do_activate(**kwargs) |