summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorElizabeth Fischer <rpf2116@columbia.edu>2017-01-07 22:59:02 -0500
committerTodd Gamblin <tgamblin@llnl.gov>2017-01-07 19:59:02 -0800
commit402dfe30f99f129d310ccde3381ea7ac8c5fca53 (patch)
tree6d82df90f623c68c99abe1a16457793d41cdeb66 /lib
parent68baac0549e816dce68ebab40c701b92f5f46dec (diff)
downloadspack-402dfe30f99f129d310ccde3381ea7ac8c5fca53.tar.gz
spack-402dfe30f99f129d310ccde3381ea7ac8c5fca53.tar.bz2
spack-402dfe30f99f129d310ccde3381ea7ac8c5fca53.tar.xz
spack-402dfe30f99f129d310ccde3381ea7ac8c5fca53.zip
Get Rid of nobuild, nolink, and alldeps (#2765)
* Removing the nobuild, nolink, and alldeps dependency types in favor of being explicit. * This will help with maintenance going forward, as adding more dependency types won't affect existing declared dependencies in weird ways. * default deptype is still `('build', 'link')`
Diffstat (limited to 'lib')
-rw-r--r--lib/spack/docs/packaging_guide.rst7
-rw-r--r--lib/spack/external/_pytest/freeze_support.py2
-rw-r--r--lib/spack/spack/__init__.py4
-rw-r--r--lib/spack/spack/cmd/create.py6
-rw-r--r--lib/spack/spack/database.py2
-rw-r--r--lib/spack/spack/spec.py6
-rw-r--r--lib/spack/spack/test/conftest.py2
7 files changed, 9 insertions, 20 deletions
diff --git a/lib/spack/docs/packaging_guide.rst b/lib/spack/docs/packaging_guide.rst
index 343adca964..708dd71c76 100644
--- a/lib/spack/docs/packaging_guide.rst
+++ b/lib/spack/docs/packaging_guide.rst
@@ -1507,11 +1507,7 @@ Additional hybrid dependency types are (note the lack of quotes):
* **<not specified>**: ``type`` assumed to be ``("build",
"link")``. This is the common case for compiled language usage.
- * **alldeps**: All dependency types. **Note:** No quotes here
- * **nolink**: Equal to ``("build", "run")``, for use by dependencies
- that are not expressed via a linker (e.g., Python or Lua module
- loading). **Note:** No quotes here
-
+
"""""""""""""""""""
Dependency Formulas
"""""""""""""""""""
@@ -3110,7 +3106,6 @@ dependencies as well. This is equivalent to
* Any combination of ``build``, ``link``, and ``run`` separated by
commas.
-* ``nobuild``, ``nolink``, ``norun`` to omit one type.
* ``all`` or ``alldeps`` for all types of dependencies.
You can also use ``spack graph`` to generate graphs in the widely used
diff --git a/lib/spack/external/_pytest/freeze_support.py b/lib/spack/external/_pytest/freeze_support.py
index f78ccd298e..b27f59d74a 100644
--- a/lib/spack/external/_pytest/freeze_support.py
+++ b/lib/spack/external/_pytest/freeze_support.py
@@ -42,4 +42,4 @@ def _iter_all_modules(package, prefix=''):
for m in _iter_all_modules(os.path.join(path, name), prefix=name + '.'):
yield prefix + m
else:
- yield prefix + name \ No newline at end of file
+ yield prefix + name
diff --git a/lib/spack/spack/__init__.py b/lib/spack/spack/__init__.py
index 1e38376f5e..901b8f115c 100644
--- a/lib/spack/spack/__init__.py
+++ b/lib/spack/spack/__init__.py
@@ -166,8 +166,8 @@ __all__ += ['Package', 'CMakePackage', 'AutotoolsPackage', 'MakefilePackage',
from spack.version import Version, ver
__all__ += ['Version', 'ver']
-from spack.spec import Spec, alldeps, nolink
-__all__ += ['Spec', 'alldeps', 'nolink']
+from spack.spec import Spec, alldeps
+__all__ += ['Spec', 'alldeps']
from spack.multimethod import when
__all__ += ['when']
diff --git a/lib/spack/spack/cmd/create.py b/lib/spack/spack/cmd/create.py
index 2607daaeb5..2d25e8c8a9 100644
--- a/lib/spack/spack/cmd/create.py
+++ b/lib/spack/spack/cmd/create.py
@@ -200,7 +200,7 @@ class PythonGuess(DefaultGuess):
# FIXME: Add additional dependencies if required.
# depends_on('py-setuptools', type='build')
- # depends_on('py-foo', type=nolink)"""
+ # depends_on('py-foo', type=('build', 'run'))"""
body = """\
def install(self, spec, prefix):
@@ -216,7 +216,7 @@ class RGuess(DefaultGuess):
"""Provides appropriate overrides for R extensions"""
dependencies = """\
# FIXME: Add dependencies if required.
- # depends_on('r-foo', type=nolink)"""
+ # depends_on('r-foo', type=('build', 'run'))"""
body = """\
# FIXME: Override install() if necessary."""
@@ -232,7 +232,7 @@ class OctaveGuess(DefaultGuess):
extends('octave')
# FIXME: Add additional dependencies if required.
- # depends_on('octave-foo', type=nolink)"""
+ # depends_on('octave-foo', type=('build', 'run'))"""
body = """\
def install(self, spec, prefix):
diff --git a/lib/spack/spack/database.py b/lib/spack/spack/database.py
index 3a0c028d5b..ff55223351 100644
--- a/lib/spack/spack/database.py
+++ b/lib/spack/spack/database.py
@@ -68,7 +68,7 @@ _db_version = Version('0.9.2')
_db_lock_timeout = 60
# Types of dependencies tracked by the database
-_tracked_deps = 'nobuild'
+_tracked_deps = ('link', 'run')
def _autospec(function):
diff --git a/lib/spack/spack/spec.py b/lib/spack/spack/spec.py
index 9ce50a54d3..8c6dd36c84 100644
--- a/lib/spack/spack/spec.py
+++ b/lib/spack/spack/spec.py
@@ -126,8 +126,6 @@ from spack.provider_index import ProviderIndex
__all__ = [
'Spec',
'alldeps',
- 'nolink',
- 'nobuild',
'canonical_deptype',
'validate_deptype',
'parse',
@@ -188,14 +186,10 @@ _any_version = VersionList([':'])
# Special types of dependencies.
alldeps = ('build', 'link', 'run')
-nolink = ('build', 'run')
-nobuild = ('link', 'run')
norun = ('link', 'build')
special_types = {
'alldeps': alldeps,
'all': alldeps, # allow "all" as string but not symbol.
- 'nolink': nolink,
- 'nobuild': nobuild,
'norun': norun,
}
diff --git a/lib/spack/spack/test/conftest.py b/lib/spack/spack/test/conftest.py
index 79d9018c27..f344727674 100644
--- a/lib/spack/spack/test/conftest.py
+++ b/lib/spack/spack/test/conftest.py
@@ -511,4 +511,4 @@ def mock_svn_repository():
t = Bunch(checks=checks, url=url, hash=get_rev, path=str(repodir))
yield t
- current.chdir() \ No newline at end of file
+ current.chdir()