summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2017-12-07config.py: fixed comments that refer to variables following them (#6585)Massimiliano Culpo1-11/+10
According to the documentation here: http://www.sphinx-doc.org/en/stable/ext/autodoc.html "For module data members and class attributes, documentation can either be put into a comment with special formatting (using a #: to start the comment instead of just #), or in a docstring after the definition."
2017-12-06CMAKE_INSTALL_RPATH is semicolon-separated. (#6577)Sergey Kosukhin1-1/+1
2017-12-01Buildcache: relocate fixes (#6512)Patrick Gartung3-27/+60
* Updated function which checks if a binary file needs relocation. Previously this was incorrectly identifying ELF binaries as symbolic links (so they were being excluded from relocation). Added test to check that ELF binaries are not considered symlinks. * relocate_text was not replacing paths in text files. Added test to check that text files are relocated properly (i.e. paths in the file are converted to the new prefix). * Exclude backup files created by filter_file when installing from binary cache. * Update write_buildinfo_file method signature to distinguish between the spec prefix and the working directory for the binary cache package.
2017-12-01Remove reference to deprecated spack md5 command (#6537)Adam J. Stewart1-2/+1
2017-11-30gpg creation: added suggestion on how to set-up rngd (#6483)Massimiliano Culpo1-0/+16
2017-11-30'spack install': make conflict messages as verbose as 'spack spec' (#6436)Massimiliano Culpo4-15/+37
"spack spec" was providing helpful error information about conflicts that was missing from "spack install", this updates "spack install" to provide the same information.
2017-11-29Improve docstring of spack.directives.extend (#6485)David Lukes1-2/+3
The original docstring had confusing wording re: what is going to symlinked and where when using the `extend` directive, and how exactly the symlinking is performed (not automatically on install, but using `spack activate`). See #5559.
2017-11-28Remove spack md5 and sha256 commands (#6428)Adam J. Stewart3-160/+0
2017-11-28add path to package.py in case of a syntax error (#6458)healther1-1/+8
2017-11-28spack spec: don't show normalize + no hash for non concrete specs (#6417)Massimiliano Culpo1-7/+2
Showing "Normalize" on output doesn't give users additional information, as this step is essentially an implementation detail of concretization. This PR skips it and shows just the input spec and the concretized one. Printing partial hashes for input spec has been disabled.
2017-11-26Use long flag in spack help message (#6429)Adam J. Stewart1-1/+1
2017-11-23Introduce virtual dependency pkgconfig (#5198)Michael Kuhn1-2/+2
There are two providers, pkgconf and pkg-config, with the former being the default provider.
2017-11-22Remove spack extensions from list of known issues (#6405)Adam J. Stewart1-20/+0
2017-11-19dealii: add cuda_arch variant via CudaPackage (#6070)Denis Davydov1-0/+88
2017-11-15git grep --files-with-matches github.com/llnl/spack | xargs sed -i ↵Christoph Junghans15-15/+15
'/github.com/s@llnl/spack@spack/spack@' (#6329)
2017-11-15Fix truncated error messages in directives (#6320)scheibelp1-4/+4
Fixes #6299 Error messages in 'directives' were split across multiple lines and not properly concatenated, which led to truncated messages.
2017-11-13Update tutorial slide links. (#6276)Todd Gamblin1-8/+7
2017-11-13basics tutorial: output updated (#6267)becker331-813/+1308
* basics tutorial: output updated through gcc * finished update for basics tutorial * missed two lines * doc error fix
2017-11-13Updates to build systems tutorial (#6273)Todd Gamblin2-12/+36
* Get rid of period in command * formatting * fix header * Change GNU Make to Make * Add variants
2017-11-12Add build systems tutorial for SC17 (#6125)Mario Melara18-3/+2539
* First draft for SC17 build systems portion Added tutorial_buildsystems.rst file as well as example files under the tutorial/ directory. * Remove floating ` * Add requested changes, and examples of subclasses Added in the requested changes to the documentation. Also added in information about the subclasses and the defaults that they provide. Also fixed some phrasing issues, formatting and punctuation. * Flake8 fixes and new files for classes Made flake8 fixes to pass tests and also added files to demonstrate code in the classes. * Minor edits Edits in formatting and made some sentence changes * Flake8 fixes More flake8 fixes * Flake8 fix * Change section order on tutorial and minor edits Placed the section at the appropriate section for the tutorial and then added some minor edits that were requested. * Add requested changes and more details Added more details to Cmake, Makefile and Python Packages. * Fixed formatting and minor edits * Fix doc build error
2017-11-12Last minute edits to the Configuration Tutorial (#6271)Adam J. Stewart1-59/+54
2017-11-12Add configuration tutorial for SC17 (#6141)becker332-2/+852
2017-11-12Update packaging tutorial (#6270)Matthew LeGendre8-142/+232
* Allow types and 'any' in variant definitions. - Previously variant values had to be a tuple or a callable predicate. - This allows 'any' as shorthand for `lambda x: True` and type objects as shorthand for "any value of this type". - Makes variant definitions more readable, keeps lambdas out of packages for common cases. * Update packaging tutorial * Fix bad file reference in packaging tutorial
2017-11-12binary packages: do post install hooks (#6269)becker331-0/+1
2017-11-12SC17: advanced packaging tutorial (#6148)Massimiliano Culpo2-0/+564
* First draft of the advanced packaging tutorial * advanced packaging tutorial: improved phrasing Thanks Denis and Hartzell! * Fixed typos + reworded a couple of sentences
2017-11-12SC17: reworked module file tutorial section (#5657)Massimiliano Culpo3-363/+1911
* Reworked module file tutorial section First draft for the SC17 update. This includes: - adding an introduction on module files + Spack's module generation blueprints - adding a set-up section and provide a docker image for easy set-up - updating all the relevant snippets - extending a bit some of the concepts that were already touched * Added reference to #5582 + committed Dockerfiles Also fixed a couple of typos spotted by Denis. * module file tutorial: added section on template customization * module file tutorial: fixed minor typos + rephrased a sentence * module file tutorial: made explicit that Docker image comes with software * module file tutorial: improved phrasing and layout. Thanks Hartzell! * module file tutorial: added vim and nano to editors * module file tutorial: fixed typo * Fixed typos Thanks Adam! * module file tutorial: updated Dockerfile + minor changes in introduction
2017-11-11Don't include build-only dependencies in build cache hash (#6262)becker331-3/+5
2017-11-10Group flags and values separated by space (#6169)scheibelp5-2/+52
Fixes #6154 For compiler options which set values using the syntax "-flag value" (with a space between the flag and the flag's value) the flag and value were treated as separate and reordered. This updates Spack's logic to treat the flag and value as a single unit, even if there is a space between them. It assumes that all flags are prefixed with "-" and that all flag values are not.
2017-11-09deal with case where symbolic links are copied (#6178)Patrick Gartung1-0/+9
* deal with case where symbolic links are copied * Suggested changes
2017-11-09spack buildcache: symlink and relative RPATH fixes (#6140)Patrick Gartung4-106/+153
* Skip rewriting files that are links (this also avoids issues with parsing the output of the 'file' command for symlinks) * Fail rather than warn for several gpg signing issues (e.g. if there is no key available to sign with) * Installation with 'buildcache install' only retrieves link and run dependencies (this matches 'buildcache create' which only creates tarballs of link/run dependencies) * Don't rewrite RPATHs for a binary if the binary cached package was created with relative RPATHs * Refactor relocate_binary to operate on multiple binaries (given as a collection of paths). This was likewise done for relocate_text and make_binary_relative
2017-11-06add artisanal handcrafted SVG Spack logo. (#6165)Todd Gamblin1-1/+1
- This isn't one of those autogenerated SVGs from a drawing program! - This is a completely re-traced, minimalist SVG file with clearly delineated pieces so that your favorite renderer can draw a Spack logo at whatever resolution you want. - Included versions with text, as well.
2017-11-06Fix spack view hardlink (#6130)Johann Klähn2-1/+14
Fix a typo in "spack view hardlink" introduced in #5415 ("os.hardlink" does not exist).
2017-11-06Introduce static_to_shared_library function (#6092)Michael Kuhn2-0/+197
The static_to_shared_library function takes an existing static library and produces a shared library based on it.
2017-11-06Docs: MPI as Root (#6156)Axel Huebl1-0/+3
New versions of OpenMPI need `--allow-run-as-root` for running as root: http://www.open-mpi.de/doc/v2.0/man1/mpirun.1.php#toc22
2017-11-06Add back help placeholder for "spack load" (#6127)scheibelp5-8/+30
Fixes #6126 #3183 removed the print_help function from the "modules" module. This adds it back so that if a user invokes 'spack load foo' without having sourced an environment setup script, they will be prompted to do so. This also improves the placeholder message to tell the user to invoke 'spack' as shell function rather than as an executable.
2017-11-04Replace github.com/llnl/spack with github.com/spack/spack (#6142)Todd Gamblin277-298/+298
We moved to a new GitHub org! Now make the code and docs reflect that.
2017-11-03Fix restaging of resources (#5681)Johann Klähn1-12/+22
Part of the resource staging process is to place downloaded/expanded files in the root stage. This was not happening when a resource stage was restaged.
2017-11-03spack fetch: don't fetch externals. (#6124)Todd Gamblin1-1/+8
Fixes #6123 spack fetch shouldn't attempt to fetch external deps when invoked with --dependencies.
2017-11-02Configure user for mock Git repository (#6128)Michael Kuhn1-0/+2
If user.useConfigOnly is set globally and no name or e-mail is configured, the git_fetch tests fail.
2017-11-02test_activations: also test perl activationsBen Boeckel1-0/+103
2017-11-02test_activations: test Python's extension logicPeter Scheibel1-0/+168
2017-11-02spec: support a test prefixPeter Scheibel1-0/+5
This is used in tests to test real packages without actually building and installing them.
2017-11-02view: test conflicting packages in viewsBen Boeckel1-0/+25
2017-11-02view: test that extension paths existBen Boeckel1-0/+23
2017-11-02filesystem_view: reject packages with activationsBen Boeckel3-11/+26
If there are extensions that are globally activated, reject adding them to a view. Those extensions should not be implicitly activated.
2017-11-02view: test viewing external packagesBen Boeckel1-0/+9
2017-11-02view: add a test for extension activationBen Boeckel1-0/+82
2017-11-02extensions: support only showing a subset of informationBen Boeckel1-32/+60
2017-11-02extensions: support acting on a viewBen Boeckel3-12/+40
This allows extensions to be (de)activated and queried within a view rather than only acting on the global installation.
2017-11-02view: use the FilesystemView abstraction for creating viewsOliver Breitwieser1-198/+127