summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2016-01-14add sanity check on config write as well as validation on read.Todd Gamblin1-0/+6
2016-01-14Add jsonschema validation for config files.Todd Gamblin24-43/+4168
2016-01-14Make text wrapping off by default in tty, add a kwarg for it.Todd Gamblin3-21/+60
2016-01-03add/remove/list working for new config format.Todd Gamblin8-109/+221
- mirrors.yaml now uses dict order for precedence, instead of lists of dicts. - spack.cmd now specifies default scope for add/remove and for list with `default_modify_scope` and `default_list_scope`. - commands that only read or list default to all scopes (merged) - commands that modify configs modify user scope (highest precedence) by default - These vars are used in setup_paraser for mirror/repo/compiler. - Spack's argparse supports aliases now. - added 'rm' alias for `spack [repo|compiler|mirror] remove`
2016-01-03Add Python 3 aliases to our argparse backport.Todd Gamblin1-5/+17
2016-01-02All tests that call concretize() need to be MockPackagesTests.Todd Gamblin1-1/+5
2016-01-02Fix bug in tests.Todd Gamblin2-14/+17
2015-12-28Rework mirror configuration.Todd Gamblin2-12/+44
- All of these work: - `spack mirror add` - `spack mirror remove` - `spack mirror list` - `spack mirror` subcommands (except create) now have their own --scope argument. - Mirror config is now stored sanely as an ordered list.
2015-12-28Rework compiler configuration and simplify config.py logic.Todd Gamblin4-73/+124
- `spack compiler` subcommands now take an optional --scope argument. - no more `remove_from_config` in `config.py` -- `update` just overwrites b/c it's easier to just call `get_config`, modify YAML structures directly, and then call `update`. - Implemented `spack compiler remove`.
2015-12-27Remove mock_configs; tests no longer modify spack home directory.Todd Gamblin3-18/+30
2015-12-27Add custom YAML loader & dumper to track lines & maintain dict order.Todd Gamblin6-43/+351
- Configs are now parsed with `spack.util.spack_yaml.load/dump` - Parser annotates returned data with `_start_mark` and `_end_mark` properties, so that we can recover what lines/files they came from. - Parser uses `OrderedDict` instead of `dict`. This will help maintain some sanity when round-tripping config files.
2015-12-27Uncomment disabled tests.Todd Gamblin1-2/+2
2015-12-25Default to scope with highest precedence instead of user scope,Todd Gamblin2-2/+10
- Generalizes config scopes a bit more: nothing assumes there is a 'user' scope (this would break testing sometimes).
2015-12-25Merge branch 'develop' into mplegendre-multi_pkgsrc_rootsTodd Gamblin303-804/+4020
Conflicts: lib/spack/spack/cmd/create.py lib/spack/spack/cmd/extensions.py lib/spack/spack/cmd/fetch.py lib/spack/spack/cmd/uninstall.py lib/spack/spack/config.py lib/spack/spack/database.py lib/spack/spack/directory_layout.py lib/spack/spack/packages.py lib/spack/spack/spec.py
2015-12-25Rework Spack config: keep user & site config in memory.Todd Gamblin11-268/+285
- User and site config are now kept separately in memory. - Merging is done on demand when client code requests the configuration. - Allows user/site config to be updated independently of each other by commands. - simplifies config logic (no more tracking merged files)
2015-12-23Merge pull request #276 from LLNL/bugfix/235-smarter-spiderTodd Gamblin4-82/+183
Fix #235: Smarter web spidering -- use parsed links instead of recons…
2015-12-23Fix #235: Smarter web spidering -- use parsed links instead of reconstructing.Todd Gamblin4-82/+183
- Move `find_versions_of_archive` from spack.package to `spack.util.web`. - `spider` funciton now just uses the link parsing it already does to return links. We evaluate actual links found in the scraped pages instead of trying to reconstruct them naively. - Add `spack url-parse` command, which you can use to show how Spack interprets the name and version in a URL.
2015-12-22Fix bug in URL regex.Todd Gamblin1-1/+1
2015-12-22revert accidental print statements.Todd Gamblin1-5/+0
2015-12-22More consistent URL parsing when finding versions.Todd Gamblin2-4/+10
Versions found by wildcard URLs are different from versions found by parse_version, etc. The wildcards are constructed more haphazardly than the very specific URL patterns in url.py, so they can get things wrong. e.g., for this URL: https://software.lanl.gov/MeshTools/trac/attachment/wiki/WikiStart/mstk-2.25rc1.tgz We miss the 'rc' and only return 2.25r as the version if we ONLY use URL wildcards. Future: Maybe use the regexes from url.py to scrape web pages, and then compare them for similarity with the original URL, instead of trying to make a structured wildcard URL pattern? This might yield better results.
2015-12-22Merge pull request #257 from eschnett/eschnett/hwloc-1.11.2Todd Gamblin2-1/+9
Update hwloc; don't require libpciaccess on OS X
2015-12-22Merge pull request #269 from eschnett/eschnett/rsync-3.1.2Todd Gamblin1-0/+1
Update rsync to 3.1.2
2015-12-22Update rsync to 3.1.2Erik Schnetter1-0/+1
2015-12-22Skip installing libpciaccess on DarwinErik Schnetter2-2/+8
2015-12-22Update hwloc; don't require libpciaccess on OS XErik Schnetter1-2/+4
- hwloc 1.11.2 is available. - libpciaccess is not supported on OS X; don't require it there.
2015-12-22Merge pull request #266 from LLNL/bugfix/python3-setuptools-conflictTodd Gamblin1-3/+8
fix conflict with setuptools and cached pyc files
2015-12-22fixed site pyc regular expressionGregory L. Lee1-1/+1
2015-12-22Merge pull request #261 from LLNL/features/prefer-versions-in-packagesTodd Gamblin2-3/+10
Add ability to prefer particular versions in packages.
2015-12-22only ignore cached site.py fileGregory L. Lee1-2/+1
2015-12-22Merge pull request #263 from nolta/hdf5-mpiTodd Gamblin1-4/+2
fix non-mpi hdf5 package build
2015-12-22Merge pull request #264 from nolta/typosTodd Gamblin2-2/+2
fix a few comment typos
2015-12-22Merge branch 'nolta-249' into developTodd Gamblin1-3/+12
2015-12-22Slightly more robust tmp directory search.Todd Gamblin1-4/+12
- remove getcwd() check (seems arbitrary -- if users set their TMPDIR to this why stop them?) - try a number of common locations and try per-user directories in them first.
2015-12-22Merge pull request #265 from epfl-scitas/packages/valgrindTodd Gamblin1-0/+55
valgrind : added package
2015-12-22fix conflict with setuptools and cached pyc filesGregory L. Lee1-2/+8
2015-12-22valgrind : added packagealalazo1-0/+55
2015-12-21fix a few comment typosMike Nolta2-2/+2
2015-12-21fix non-mpi hdf5 package buildMike Nolta1-4/+2
Fixes a couple of issues in c5b7eba45743ebd131233c035101a0e64bb0c1c7.
2015-12-21fix #249 (tmp spack-stage directories conflict)Mike Nolta1-2/+3
2015-12-21Add ability to prefer particular versions in packages.Todd Gamblin2-3/+10
- Adding `preferred=True` to a version directive will change its sort order in concretization. - This provides us a rudimentary ability to keep the Spack stack stable as new versions are added. - Having multiple stacks will come next, but this at least allows us to specify default versions of things instead of always taking the newest.
2015-12-21new python versionsGregory L. Lee1-0/+2
2015-12-21remove numpy compiler patchGregory L. Lee1-7/+0
2015-12-21Merge pull request #208 from epfl-scitas/features/resource_directiveTodd Gamblin8-41/+287
resource directive : implementation + clang / llvm use case
2015-12-21Merge pull request #215 from sjtbham/developTodd Gamblin1-3/+18
fix build to work against depends for modules created by setup.py and…
2015-12-20Merge pull request #255 from LLNL/bugfix/254-libtool-compiler-name-issuesTodd Gamblin23-15/+77
Fix #254: libtool & distutils want certain compiler names.
2015-12-20Merge pull request #231 from epfl-scitas/packages/scotchTodd Gamblin1-14/+100
scotch: adding dependencies + variants for mpi, shared, compression and esmumps
2015-12-20Merge pull request #251 from epfl-scitas/packages/tauTodd Gamblin6-63/+226
Improved build of tau and related dependencies
2015-12-20tau : scorep is now a variantalalazo1-3/+6
2015-12-20removing completely the write_make_inc functionNicolas Richart1-7/+3
2015-12-20moving write_make_inc into a patch functionNicolas Richart1-1/+4