cleanup
This commit is contained in:
parent
16e9d658d5
commit
e1a0af8745
4 changed files with 4 additions and 8 deletions
|
@ -88,7 +88,6 @@ def parse_specs(args, **kwargs):
|
|||
if isinstance(args, (python_list, tuple)):
|
||||
args = " ".join(args)
|
||||
|
||||
|
||||
try:
|
||||
specs = spack.spec.parse(args)
|
||||
for spec in specs:
|
||||
|
|
|
@ -196,7 +196,6 @@ def install(self, prefix):
|
|||
class when(object):
|
||||
def __init__(self, spec):
|
||||
pkg = get_calling_module_name()
|
||||
# self.spec = spack.spec.Spec(spec)
|
||||
self.spec = parse_anonymous_spec(spec, pkg)
|
||||
|
||||
def __call__(self, method):
|
||||
|
|
|
@ -352,7 +352,6 @@ def __init__(self, spec):
|
|||
# Fix up self.url if this package fetches with a URLFetchStrategy.
|
||||
# This makes self.url behave sanely.
|
||||
if self.spec.versions.concrete:
|
||||
|
||||
# TODO: this is a really roundabout way of determining the type
|
||||
# TODO: of fetch to do. figure out a more sane fetch strategy/package
|
||||
# TODO: init order (right now it's conflated with stage, package, and
|
||||
|
@ -588,7 +587,6 @@ def installed_dependents(self):
|
|||
@property
|
||||
def prefix(self):
|
||||
"""Get the prefix into which this package should be installed."""
|
||||
# print self.spec, self.spec.prefix
|
||||
return self.spec.prefix
|
||||
|
||||
|
||||
|
|
|
@ -38,18 +38,18 @@ def check_yaml_round_trip(self, spec):
|
|||
self.assertTrue(spec.eq_dag(spec_from_yaml))
|
||||
|
||||
|
||||
def _test_simple_spec(self):
|
||||
def test_simple_spec(self):
|
||||
spec = Spec('mpileaks')
|
||||
self.check_yaml_round_trip(spec)
|
||||
|
||||
|
||||
def _test_normal_spec(self):
|
||||
def test_normal_spec(self):
|
||||
spec = Spec('mpileaks+debug~opt')
|
||||
spec.normalize()
|
||||
self.check_yaml_round_trip(spec)
|
||||
|
||||
|
||||
def _test_ambiguous_version_spec(self):
|
||||
def test_ambiguous_version_spec(self):
|
||||
spec = Spec('mpileaks@1.0:5.0,6.1,7.3+debug~opt')
|
||||
spec.normalize()
|
||||
self.check_yaml_round_trip(spec)
|
||||
|
@ -61,7 +61,7 @@ def test_concrete_spec(self):
|
|||
self.check_yaml_round_trip(spec)
|
||||
|
||||
|
||||
def _test_yaml_subdag(self):
|
||||
def test_yaml_subdag(self):
|
||||
spec = Spec('mpileaks^mpich+debug')
|
||||
spec.concretize()
|
||||
|
||||
|
|
Loading…
Reference in a new issue