Nicolas Richart
37faa41b6f
stripping the links to remove spaces and '\n'
2016-08-15 21:13:25 +02:00
Todd Gamblin
1e673bfa42
Don't assume spack is in the path when buildign docs.
2016-08-15 10:49:09 -07:00
Adam J. Stewart
c815aed207
Update documentation for spack md5
2016-08-12 10:51:56 -05:00
becker33
ec7f58bf96
Merge pull request #1493 from xjrc/bugfix/nonbool-variants
...
Bug Fix : Allow Packages to Have Variants w/ Non-Bool, Non-String Defaults
2016-08-11 11:33:54 -07:00
Matt Belhorn
568305ddff
Corrects Cray compiler name and adds missing version flag.
2016-08-11 13:56:21 -04:00
Todd Gamblin
867121ca68
Move jsonschema files out of config.py
to their own package.
2016-08-10 16:33:38 -07:00
Todd Gamblin
bf1072c902
Make Spack core PEP8 compliant.
2016-08-10 16:33:37 -07:00
Todd Gamblin
e7f4fd404d
Fix superclass constructor for SpackNamespace objects.
2016-08-10 15:54:13 -07:00
Joseph Ciurej
aa860bf4df
Fixed a bug that was making packages with non-bool default variants to crash.
2016-08-10 11:54:33 -07:00
George Hartzell
4bca1c5440
Fix typo 'flexbile' -> 'flexible'
2016-08-09 15:13:08 -07:00
Todd Gamblin
9d4a36a62f
Properly re-raise exceptions from lock context handler.
2016-08-09 02:25:09 -07:00
Todd Gamblin
0c75c13cc0
Flake8 fixes
2016-08-09 02:25:07 -07:00
Todd Gamblin
102ac7bcf1
Move provider cache to home directory and refactor Transactions
...
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-09 00:24:54 -07:00
Todd Gamblin
2042e9a6d8
Fix bugs with sparse spec printing.
...
- Make namespace, arch, and dependnecies show up in spec yaml
only if they're set.
- Lost some of this functionality with deptypes
2016-08-08 21:04:23 -07:00
Todd Gamblin
1339714eec
Restore text output in verbose mode.
2016-08-08 21:04:23 -07:00
Todd Gamblin
5d690c9270
Make compiler command test last until caching is fixed.
...
- global compiler cache breaks tests that come after this one.
2016-08-08 21:04:23 -07:00
Todd Gamblin
e5743db9b9
Fix issues with import order in tests.
...
- modules weren't set properly as attributes in parent modules
2016-08-08 21:04:23 -07:00
Todd Gamblin
d195576fba
WIP
2016-08-08 21:04:23 -07:00
Todd Gamblin
5e5024342f
Fix iterator invalidation issues.
2016-08-08 21:04:23 -07:00
Todd Gamblin
4de45c2684
fix scoping issue.
2016-08-08 21:04:23 -07:00
Todd Gamblin
ce6ac93abe
rename virtual
module to provider_index
2016-08-08 21:04:23 -07:00
Todd Gamblin
1f5a21decf
Fix namespace support in Repo.get_pkg_class()
2016-08-08 21:04:23 -07:00
Todd Gamblin
ab049eca41
Faster key in FlagMap._cmp_key
2016-08-08 21:04:23 -07:00
Todd Gamblin
37fc258313
Remove vestigial methods from Package.
2016-08-08 21:04:23 -07:00
Todd Gamblin
faa0a0e4c3
Add a ProviderIndex cache.
...
- 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-08 21:04:23 -07:00
Todd Gamblin
cf2f902b82
Make ProviderIndexes mergeable, so we can cache them per-repo.
2016-08-08 21:04:23 -07:00
Todd Gamblin
bf028990e7
Make ProviderIndex yaml-izable.
...
- allow a provider index to be stored and re-read.
2016-08-08 21:04:23 -07:00
Todd Gamblin
025609c63f
More compact YAML formatting for abstract specs.
...
- Don't add empty/absent fields to Spec YAML when they're not there.
2016-08-08 21:04:23 -07:00
Todd Gamblin
7aaad89ba9
Lazily evaluate all_package_names in repository.py
...
- 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-08 21:04:23 -07:00
Adam J. Stewart
5d48c108a3
Only strip newline chars, not spaces
2016-08-08 15:02:05 -05:00
Glenn Johnson
20221ee3aa
Catch error for version in VCS
...
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-05 11:16:43 -05:00
Todd Gamblin
6ab78eb88e
sbang filtering now works on non-writable files. ( #1445 )
...
- sbang now changes mode to writable and restores mode if a file is not
writable.
2016-08-04 10:46:45 -07:00
becker33
369b2ef01f
Merge pull request #1330 from suraia/fix-ascii-graph
...
Fix graph command with ASCII output
2016-08-04 09:37:24 -07:00
Torbjörn Lönnemark
61b3ecb6d2
Fix flake8 issues
2016-08-04 16:28:14 +02:00
Torbjörn Lönnemark
a591e183bc
Fix incorrect indentation
2016-08-04 16:09:49 +02:00
Michael Kuhn
2bd1a51193
flake8 fixes
2016-08-04 13:07:33 +02:00
Michael Kuhn
1578a95982
Fix tests.
2016-08-04 13:07:33 +02:00
Michael Kuhn
7affaca321
Fix graph command with ASCII output.
2016-08-04 13:07:33 +02:00
James Riley Wynne III
f0609699ba
Added parens to %'s arguments. Fixes #1432
2016-08-03 17:16:04 -04:00
Kelly (KT) Thompson
46e9d85283
Cray: Fix a typo that could cause an infinite recursion when calling /env/cc.
...
fixes #1428
2016-08-03 14:15:44 -06:00
becker33
7ae163d436
Merge pull request #1361 from epfl-scitas/features/module_token_expansion_in_environment
...
module : token expansion in environment
2016-08-03 09:49:28 -07:00
Adam J. Stewart
941acef009
spack create should use setup_py() instead of python()
2016-08-02 12:20:28 -05:00
becker33
326b9838ed
Merge pull request #1423 from glennpj/fix_url
...
Move archive_version setting to if block
2016-08-02 10:05:25 -07:00
Glenn Johnson
2929fb0a4d
Move archive_version setting to if block
...
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-02 11:54:09 -05:00
becker33
21158195fb
Merge pull request #1354 from paulhopkins/bugfix/preferred_variants_do_not_recognise_-variant
...
Bugfix/preferred variants do not recognise -variant
2016-08-02 09:15:06 -07:00
Gregory Becker
679ceabf36
fixed flake8 errors
2016-08-01 17:22:13 -07:00
Gregory Becker
31042e8ed1
further improved error message
2016-08-01 17:16:06 -07:00
Gregory Becker
2705f2c0e3
changed error raised in concretize compiler to provide better error message
2016-08-01 17:11:10 -07:00
becker33
c678a9e3da
Merge pull request #1417 from LLNL/features/combined-cray-platform-cleanup
...
Removed vestigial cray_xc platform in favor of combined cray platform
2016-08-01 16:26:20 -07:00
Gregory Becker
0cf1f917d5
fixed architecture test
2016-08-01 16:17:31 -07:00