summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Scheibel <scheibel1@llnl.gov>2016-01-21 19:57:49 -0800
committerPeter Scheibel <scheibel1@llnl.gov>2016-01-21 19:57:49 -0800
commit2e58bc31138ee172ea55ad652aaf49b09fe6e135 (patch)
tree2e316bfa388322e82531a54f1301552de0fc02e6
parent965af75d23b356b44918f815b0e7ef14bdedcba3 (diff)
downloadspack-2e58bc31138ee172ea55ad652aaf49b09fe6e135.tar.gz
spack-2e58bc31138ee172ea55ad652aaf49b09fe6e135.tar.bz2
spack-2e58bc31138ee172ea55ad652aaf49b09fe6e135.tar.xz
spack-2e58bc31138ee172ea55ad652aaf49b09fe6e135.zip
Sticking with additive approach but now most libraries are installed by default.
-rw-r--r--var/spack/repos/builtin/packages/boost/package.py26
1 files changed, 17 insertions, 9 deletions
diff --git a/var/spack/repos/builtin/packages/boost/package.py b/var/spack/repos/builtin/packages/boost/package.py
index 1992d4d39a..f31bc445b8 100644
--- a/var/spack/repos/builtin/packages/boost/package.py
+++ b/var/spack/repos/builtin/packages/boost/package.py
@@ -45,28 +45,36 @@ class Boost(Package):
version('1.34.1', '2d938467e8a448a2c9763e0a9f8ca7e5')
version('1.34.0', 'ed5b9291ffad776f8757a916e1726ad0')
- libs = ['chrono',
+ default_install_libs = set(['chrono',
'date_time',
'filesystem',
- 'iostreams',
+ 'graph',
+ 'iostreams',
+ 'log',
+ 'math',
'random',
'regex',
'serialization',
'signals',
'system',
'thread',
- 'wave',
- 'mpi',
- 'python']
+ 'wave'])
- for lib in libs:
- variant(lib, default=False, description="Compile with {0} library"
- .format(lib))
+ # These are not installed by default because they pull in many dependencies
+ # and/or because there is a great deal of customization possible (and it
+ # would be difficult or tedious to choose sensible defaults here).
+ default_noinstall_libs = set(['mpi', 'python'])
+
+ all_libs = default_install_libs | default_noinstall_libs
+
+ for lib in all_libs:
+ variant(lib, default=(lib in default_install_libs),
+ description="Compile with {0} library".format(lib))
variant('debug', default=False, description='Switch to the debug version of Boost')
variant('shared', default=True, description="Additionally build shared libraries")
variant('multithreaded', default=True, description="Build multi-threaded versions of libraries")
- variant('singlethreaded', default=False, description="Build single-threaded versions of libraries")
+ variant('singlethreaded', default=True, description="Build single-threaded versions of libraries")
variant('regex_icu', default=False, description="Include regex ICU support (by default false even if regex library is compiled)")
depends_on('icu', when='+regex_icu')