summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
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
2016-08-01Replaces bash-ism `source` for POSIX-compliant `.`Matt Belhorn1-1/+1
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-01Merge pull request #1357 from hartzell/patch-6becker331-1/+1
Fix doc for install_tree (cut/paste error)
2016-08-01Merge pull request #1346 from glennpj/url_list_fetchbecker331-41/+71
Url list fetch
2016-08-01Fix backup=True for filter_fileAdam J. Stewart1-7/+9
2016-08-01Fix flake8 line length errorsGlenn Johnson1-33/+52
2016-08-01Writes default module list to terminal when debugging.Matt Belhorn1-10/+8
2016-08-01Add concretize_preferences testsPaul Hopkins2-3/+109
2016-07-30Invokes subshell without user init scripts.Matt Belhorn1-1/+2
2016-07-29Obtains default modules from a clean subshell.Matt Belhorn1-8/+29
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-29Use space characters to separate preferred variants from package name and ↵Paul Hopkins1-2/+2
each other
2016-07-27PEP8 Goodnessrobertdfrench2-16/+18
2016-07-27Front-end unification for Cray systems.Matt Belhorn1-0/+87
A platform to generically cover all Cray systems is introduced to avoid having specific platforms for each of XK (XE, XT), XC, and future systems using CrayPE and CNL. The platform searches for 'front_end' and 'back_end' targets, in order, from: * Environment variables 'SPACK_FRONT_END' and 'SPACK_BACK_END' * A spack configuration file 'targets.yaml' * Parsing `/etc/bash.bashrc.local` for first loaded CrayPE CPU target. If a back_end target is not found through one of these methods, an exception is raised. Otherwise, the back_end is set as the default target. The shell init script search is based on recommendations in Crayports case #144359. No automagic way of determining front_end targets has been found (to date) so if a front_end is not specified through configuration, it is ignored which should leave a spack instance in a consistant state.
2016-07-27Adds __str__ method to CNL operating system class.Matt Belhorn1-0/+2
2016-07-27Adds targets config fileMatt Belhorn1-0/+13
2016-07-26modules : handle dashes in environment variablesalalazo1-1/+1
2016-07-25Merge pull request #1353 from epfl-scitas/qa/minor_cleanupbecker332-53/+39
qa : minor cleanup
2016-07-25qa : flake8 issues fixes #1109alalazo2-2/+5
2016-07-25modules : permit token expansion in configuration filesalalazo3-6/+35
2016-07-25Fix doc for install_tree (cut/paste error)George Hartzell1-1/+1
It looks like the docs for copy_tree were cut/paste from copy and still referred to installing a "file". This fixes that.
2016-07-25qa : flake8 issuesalalazo2-19/+27
2016-07-25spec : removed dead codealalazo1-29/+13