summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
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-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-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-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-25Merge pull request #1353 from epfl-scitas/qa/minor_cleanupbecker332-53/+39
qa : minor cleanup
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
2016-07-24Make sure package has the `url` attribute.Glenn Johnson1-1/+1
In addition to `list_url` make sure the package has the `url` attribute set before attempting to add urls from a list. This is to cover the case where there may be a `list_url` specified in tandem with a `url_for_version`.
2016-07-23Only use list if list_url setGlenn Johnson1-8/+9
This commit will make urls from list_url only checked if `list_url` is set in the package file. This makes more sense as there is no need to check for those if the attribute is not present. If `url` is present and `list_url` is not then it would result in the same url. If `url_for_version` is used then that will not work anyway.
2016-07-23Fix flake8 errors related to linesGlenn Johnson1-8/+5
Fixed the flake 8 errors that involved too many blank lines or not enough blank lines. Basically, all of the flake8 errors except line length errors.
2016-07-23Have fetch use list_urlGlenn Johnson1-0/+13
This PR allows archive file retrieval from urls derived from the `list_url` setting in a package file. This allows for continued retrieval of checksummed archive files even when they are moved to a new remote location when a package is updated upstream.
2016-07-22Use example deptypes in newly created packagesAdam J. Stewart1-9/+34
2016-07-22test_install : removed commented codealalazo1-7/+1
2016-07-21Added cray wrapper names directory to spack_env_paths so the spack compiler ↵Gregory Becker1-5/+6
wrapper will remove them from the environment (prevents hang)
2016-07-21fixed flake8 errorsGregory Becker1-2/+3
2016-07-21fixedGregory Becker1-4/+5
2016-07-21Bug fix for cray_xc platformGregory Becker4-1/+4
2016-07-21Merge pull request #1208 from ↵Todd Gamblin4-77/+128
paulhopkins/bugfix/github1196-specify-preferred-variants Bugfix/github1196 specify preferred variants
2016-07-21Flake8 fixes to ensure qa tests passPaul Hopkins1-71/+103
2016-07-21Re-add documentation for variant preferencesPaul Hopkins1-5/+6
2016-07-21Allow users to supply preferred variants via packages.yamlPaul Hopkins3-3/+21
2016-07-21Update documentation for recursive module loading.Michael Kuhn1-30/+31
2016-07-20Setup environment for Intel Parallel StudioGlenn Johnson1-0/+1
Set up the environment for the Intel compilers and tools. This commit does the following: - Unset variables that were incorrect from the auto guess prefix inspections. - Add a RemovePath environment_modifications_formats for dotkit. - Set the module environment variables appropriate for the different variants. - Change the component logic so that the '+all' variant works. It was getting split by letter and leaving COMPONENTS empty. - Added a variant checking function. - Added NONRPM_DB_DIR to the silent.cfg so that the product database goes to the installation directory. - With the product database in prefix the code to remove the product database file from the home directory is no longer needed and was removed. - Reformat the 'tools' variant description. There are probably more variables needed for the '+tools' for the 'professional' product version but I do not have access to that.
2016-07-20Merge pull request #1277 from mathstuf/special-deptypesTodd Gamblin3-5/+10
deptypes: support special deptypes by string
2016-07-20added package as argument to setup_platform_environmentGregory Becker3-3/+6
2016-07-20Documented linker defaultGregory Becker1-0/+4
2016-07-20fixed flake errorsGregory Becker2-10/+5
2016-07-20removed commented-out codeGregory Becker1-5/+0
2016-07-20Set default link type to dynamic on cray. Includes hooks for platform-based ↵Gregory Becker3-0/+19
environment changes