summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2016-08-10Move jsonschema files out of `config.py` to their own package.Todd Gamblin8-276/+507
2016-08-10Make Spack core PEP8 compliant.Todd Gamblin147-1153/+1415
2016-08-10Fix superclass constructor for SpackNamespace objects.Todd Gamblin1-1/+1
2016-08-09Fix typo 'flexbile' -> 'flexible'George Hartzell1-1/+1
2016-08-09Properly re-raise exceptions from lock context handler.Todd Gamblin1-4/+6
2016-08-09Flake8 fixesTodd Gamblin16-330/+294
2016-08-09Move provider cache to home directory and refactor TransactionsTodd Gamblin18-113/+600
Major stuff: - Created a FileCache for managing user cache files in Spack. Currently just handles virtuals. - Moved virtual cache from the repository to the home directory so that users do not need write access to Spack repositories to use them. - Refactored `Transaction` class in `database.py` -- moved it to `LockTransaction` in `lock.py` and made it reusable by other classes. Other additions: - Added tests for file cache and transactions. - Added a few more tests for database - Fixed bug in DB where writes could happen even if exceptions were raised during a transaction. - `spack uninstall` now attempts to repair the database when it discovers that a prefix doesn't exist but a DB record does.
2016-08-08Fix bugs with sparse spec printing.Todd Gamblin3-10/+34
- Make namespace, arch, and dependnecies show up in spec yaml only if they're set. - Lost some of this functionality with deptypes
2016-08-08Restore text output in verbose mode.Todd Gamblin1-0/+4
2016-08-08Make compiler command test last until caching is fixed.Todd Gamblin1-2/+3
- global compiler cache breaks tests that come after this one.
2016-08-08Fix issues with import order in tests.Todd Gamblin1-15/+30
- modules weren't set properly as attributes in parent modules
2016-08-08WIPTodd Gamblin3-27/+117
2016-08-08Fix iterator invalidation issues.Todd Gamblin1-10/+19
2016-08-08fix scoping issue.Todd Gamblin1-1/+1
2016-08-08rename `virtual` module to `provider_index`Todd Gamblin5-12/+16
2016-08-08Fix namespace support in Repo.get_pkg_class()Todd Gamblin2-2/+8
2016-08-08Faster key in FlagMap._cmp_keyTodd Gamblin1-2/+1
2016-08-08Remove vestigial methods from Package.Todd Gamblin1-38/+0
2016-08-08Add a ProviderIndex cache.Todd Gamblin2-13/+141
- Spack will check if the index needs updating, and will only parse all package files if it does. - Spack tries to parse as few package files as necessary.
2016-08-08Make ProviderIndexes mergeable, so we can cache them per-repo.Todd Gamblin3-8/+57
2016-08-08Make ProviderIndex yaml-izable.Todd Gamblin4-13/+138
- allow a provider index to be stored and re-read.
2016-08-08More compact YAML formatting for abstract specs.Todd Gamblin2-26/+27
- Don't add empty/absent fields to Spec YAML when they're not there.
2016-08-08Lazily evaluate all_package_names in repository.pyTodd Gamblin1-10/+17
- Don't need to list all packages unless we have to. - Only use the list of all packages for existence checks if we have generated it for some other purpose.
2016-08-08Only strip newline chars, not spacesAdam J. Stewart1-1/+1
2016-08-05Catch error for version in VCSGlenn Johnson1-8/+12
This PR will catch the error where the url can not be determined from a VCS URL, such as git. It will print a message to the console and move on because it should not be a fatal error at this point in the process. This should fix #1459.
2016-08-04sbang filtering now works on non-writable files. (#1445)Todd Gamblin2-3/+26
- sbang now changes mode to writable and restores mode if a file is not writable.
2016-08-04Merge pull request #1330 from suraia/fix-ascii-graphbecker333-121/+101
Fix graph command with ASCII output
2016-08-04Fix flake8 issuesTorbjörn Lönnemark1-10/+10
2016-08-04Fix incorrect indentationTorbjörn Lönnemark1-5/+5
2016-08-04flake8 fixesMichael Kuhn2-103/+83
2016-08-04Fix tests.Michael Kuhn2-12/+11
2016-08-04Fix graph command with ASCII output.Michael Kuhn2-8/+9
2016-08-03Added parens to %'s arguments. Fixes #1432James Riley Wynne III1-1/+1
2016-08-03Cray: Fix a typo that could cause an infinite recursion when calling /env/cc.Kelly (KT) Thompson1-1/+1
fixes #1428
2016-08-03Merge pull request #1361 from ↵becker333-6/+38
epfl-scitas/features/module_token_expansion_in_environment module : token expansion in environment
2016-08-02spack create should use setup_py() instead of python()Adam J. Stewart1-1/+1
2016-08-02Merge pull request #1423 from glennpj/fix_urlbecker331-1/+2
Move archive_version setting to if block
2016-08-02Move archive_version setting to if blockGlenn Johnson1-1/+2
The archive_version variable should only get set if versions will be checked and that is only if there is a list_url in the package file. For VCS repos setting the variable triggers an error from web.py as it parses the default_fetcher object. This should fix #1422.
2016-08-02Merge pull request #1354 from ↵becker333-5/+111
paulhopkins/bugfix/preferred_variants_do_not_recognise_-variant Bugfix/preferred variants do not recognise -variant
2016-08-01fixed flake8 errorsGregory Becker1-2/+4
2016-08-01further improved error messageGregory Becker1-4/+6
2016-08-01changed error raised in concretize compiler to provide better error messageGregory Becker1-1/+1
2016-08-01Merge pull request #1417 from LLNL/features/combined-cray-platform-cleanupbecker332-74/+2
Removed vestigial cray_xc platform in favor of combined cray platform
2016-08-01fixed architecture testGregory Becker1-2/+2
2016-08-01Add import statementMario Melara1-1/+1
Add missing import statement for join_path
2016-08-01Removed vestigial cray_xc platform in favor of combined cray platformGregory Becker1-72/+0
2016-08-01Merge pull request #1376 from mpbelhorn/olcf/unified_cray_platformbecker333-9/+133
Olcf/unified cray platform
2016-08-01Fixes Flake8 indentation errors.Matt Belhorn1-3/+3
2016-08-01Prefers `bash` over `sh`.Matt Belhorn1-1/+1
Assuming a bash interactive environment will be correctly formed on login, we should prefer to probe the environment using a shell that reports itself as `bash` instead of `sh` which may not source files that set the environment modules in statements like: ``` case "$is" in bash) test -s /etc/bash.bashrc.local && . /etc/bash.bashrc.local ;; ksh) test -s /etc/ksh.kshrc.local && . /etc/ksh.kshrc.local ;; zsh) test -s /etc/zsh.zshrc.local && . /etc/zsh.zshrc.local ;; ash) test -s /etc/ash.ashrc.local && . /etc/ash.ashrc.local esac test -s /etc/sh.shrc.local && . /etc/sh.shrc.local ```
2016-08-01Merge pull request #1414 from adamjstewart/fixes/filter_filebecker331-7/+9
Fix backup=True for filter_file