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
Mario Melara
0425f5d523
Add import statement
...
Add missing import statement for join_path
2016-08-01 15:59:30 -07:00
Gregory Becker
0ce98d4d65
Removed vestigial cray_xc platform in favor of combined cray platform
2016-08-01 15:43:11 -07:00
becker33
7f43a7d134
Merge pull request #1376 from mpbelhorn/olcf/unified_cray_platform
...
Olcf/unified cray platform
2016-08-01 15:40:11 -07:00
Matt Belhorn
661708b7fa
Fixes Flake8 indentation errors.
2016-08-01 17:27:33 -04:00
Matt Belhorn
ae167c09fc
Prefers bash
over sh
.
...
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-01 17:17:24 -04:00
becker33
14d861a41c
Merge pull request #1414 from adamjstewart/fixes/filter_file
...
Fix backup=True for filter_file
2016-08-01 14:10:59 -07:00
Matt Belhorn
e864d27641
Replaces bash-ism source
for POSIX-compliant .
...
Change is made in order to use `/bin/sh` on systems where `/bin/sh` is not
simply an alias for `/bin/bash --norc`.
2016-08-01 17:04:09 -04:00
becker33
49e47966a8
Merge pull request #1357 from hartzell/patch-6
...
Fix doc for install_tree (cut/paste error)
2016-08-01 13:45:20 -07:00
becker33
630ff6871d
Merge pull request #1346 from glennpj/url_list_fetch
...
Url list fetch
2016-08-01 13:37:57 -07:00
Adam J. Stewart
5b79f0d04a
Fix backup=True for filter_file
2016-08-01 15:35:02 -05:00
Glenn Johnson
19578d954f
Fix flake8 line length errors
2016-08-01 13:37:42 -05:00
Matt Belhorn
aaa5c9e8a4
Writes default module list to terminal when debugging.
2016-08-01 12:05:29 -04:00
Paul Hopkins
cca240c8f9
Add concretize_preferences tests
2016-08-01 16:18:11 +01:00
Matt Belhorn
dc7e0899a0
Invokes subshell without user init scripts.
2016-07-30 11:38:34 -04:00
Matt Belhorn
5e97eb5ec4
Obtains default modules from a clean subshell.
...
The list of default environment modules is obtained by calling
`module list -lt`
from a subshell with a wiped environment. This allows `/etc/profile` and other
init scripts to be fully sourced which should generally include loading the
default modules.
The list of default modules is then parsed for the first acceptable CPU target,
assumed to be the back_end target.
2016-07-29 15:02:25 -04:00