summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2014-08-16Bugfixes, more consolidation of modules code.Todd Gamblin3-21/+49
- specific module classes use __metaclass__ to register themselves. - bugfixes in module writing.
2014-08-16Add csh/tcsh support for modulesTodd Gamblin1-0/+1
- csh scripting is a GIANT pain in the ass - hopefully the thin script layer doesn't get much more complex.
2014-08-16Consolidate most module code into spack.modules and spack.cmd.moduleTodd Gamblin10-282/+283
- One file with all the module classes (spack/modules.py) - Has an EnvModule superclass that does most of the work and consolidates common code - Subclasses have specializations for different module systems (TclModule, Dotkit) - One command (spack module) for all the types of modules to use - the one command is used by the scripts, only need to maintain in one place - has some subcommands for different module types, but they're handled mostly generically. - Consolidate zsh support into a single setup-env.sh script.
2014-08-04Fixed up module supportDavid Beckingsale3-10/+11
2014-08-04Added inital module supportDavid Beckingsale5-0/+271
2014-08-04find and uninstall work when installed package is no longer in spack.Todd Gamblin4-14/+54
- Make switching between git branches easier. - Make future removal of packages easier.
2014-07-30Allow per-version URLs instead of one single URL per package.Todd Gamblin11-81/+189
2014-07-09Fix Jeff Keasler's issues and add parmetis package.v0.8Todd Gamblin3-7/+5
2014-07-09Fix for SPACK-35: Fortran not working properlyTodd Gamblin6-2/+7
- Spack needed symlinks in env for fortran compilers. - 'fc' is a bash bulitin, so can't use it for fortran compiler. - switched to 'f90' for this. - mpich 3 builds with fortran now. - enabled shared libs in mpich package
2014-07-08Fix typos.Todd Gamblin2-19/+20
Thanks Adam!
2014-07-08Fix for finding dependent packagesTodd Gamblin1-3/+4
2014-07-08Fix for dependent package detection.Todd Gamblin1-0/+46
2014-07-08Adding dotkit support to TAU.Todd Gamblin10-21/+392
- New spack.hooks package - contains modules with pre and post install hooks - New dotkit hook module - generates/removes dotkits on install/uninstall - New spack use, spack unuse commands - use same syntax as install/uninstall - New setup-env.bash script - Sets up path, dotkit support - new spack dotkit command - used by script to parse specs, generate specs of installed pckages for dotkit file names
2014-07-02Add TAU package and routines to filter files, fix sed calls.Todd Gamblin2-2/+75
- TAU doesn't install to directories with '@' in the name. - Need to fix up its scripts. - routines to filter files as sed would, but using python regular expressions. - TAU package uses this.
2014-07-02Some fixes for spack-python interpreter mode.Todd Gamblin1-6/+12
2014-06-24Reordered site configuration docs.Todd Gamblin1-50/+51
2014-06-24Updated docs.Todd Gamblin3-87/+232
2014-06-24Bugfix for mirror commandTodd Gamblin1-1/+1
2014-06-24spack mirror now checksums fetched archives.Todd Gamblin3-24/+41
2014-06-24New spack mirror command, configuration.Todd Gamblin6-49/+184
- Mirrors now appear in ~/.spackconfig, can be edited in that file. - spack mirror command allows adding, listing, removing mirrors - Also still creates mirror directories.
2014-06-24Add more output; don't re-add existing compilersTodd Gamblin1-2/+11
2014-06-23import & namespace fixesTodd Gamblin2-3/+1
- Fix Boost issue reported in SPACK-16
2014-06-23Simplified compiler finding logic and caching.Todd Gamblin4-66/+39
2014-06-22Multi-compiler support feature-complete. Fix SPACK-3, SPACK-4, SPACK-12.Todd Gamblin11-150/+519
- Fast compiler finding in path and for other directories - first time spack runs, it searches path. - user can add more compilers with 'spack compiler add' - Finds intel, gcc, clang, and pgi compilers with custom version args. - Builds can plug in alternate compilers with ease (e.g. %intel@12.1)
2014-06-22Executables can optionally ignore error output.Todd Gamblin1-6/+24
2014-06-22Enable allow_no_value for config parser.Todd Gamblin1-19/+53
- Will be useful for, e.g., mirror lists. - Previously didn't properly override regex used when no-value fields are allowed.
2014-06-22Make tests use mock compiler configuration.Todd Gamblin2-2/+13
- makes sure tests don't fail on systems that don't have some compilers (e.g. clang). - more control over specific test cases for compilers.
2014-06-22Set default editor to vi if EDITOR is not set.Todd Gamblin1-1/+1
2014-06-22Add working_dir, Version back into package build namespace.Todd Gamblin1-1/+7
2014-06-22Compiler support now uses configuration files.Todd Gamblin11-68/+286
- no more need for compiler python files. - Default compilers are found in user's environment and added to ~/.spackconfig automatically - User can add new compilers by editing configuration file
2014-06-22Make debug and verbose output work properly.Todd Gamblin2-7/+31
2014-06-22Minor cleanup and bug fixes.Todd Gamblin7-20/+26
2014-06-22Add support for configuration files. Fix SPACK-24.Todd Gamblin4-1/+597
2014-06-22Proper exiting for forked process in do_install()Todd Gamblin1-11/+15
2014-06-22Move globals to spack's __init__.pyTodd Gamblin2-37/+7
2014-06-22Move globals to spack's __init__.pyTodd Gamblin3-145/+172
2014-06-22Initial ability to swap compilers.Todd Gamblin17-117/+227
Fixes SPACK-16 and forces compiler script to build using compiler wrappers. - works with gcc and clang on laptop.
2014-06-22Better satisfies: e.g., v4.7.3 now satisfies v4.7Todd Gamblin5-13/+118
- Changed how satisfies() is defined for the various version classes - Can't just use overlaps() with version lists -- need to account for more and less specific versions. If the version is more specific than the constriant (e.g., 4.7.3 is more specific than 4.7), then it should satisfy the constraint, because if a user asks for 4.7 they likely do not care about the minor version. If they do, they can specify it. New Version.satisfies() takes this into account.
2014-06-22Add CompilerSpec class and loading capability.Todd Gamblin11-92/+177
- spack.spec.Compiler is now spack.spec.CompilerSpec - Can load a spack.compilers.* module for a particular spec - e.g. load Gcc module for gcc@4.7 spec.
2014-06-22Implemented compiler concretization policy.Todd Gamblin5-41/+91
2014-06-22Sorted out spack.compilers vs var/spack/compilersTodd Gamblin8-53/+118
2014-06-22Make Compiler constructor behave like Spec constructor.Todd Gamblin6-27/+47
2014-06-22partial checkinTodd Gamblin1-0/+57
2014-05-27Merge pull request #10 in SCALE/spack from ~SHRADER3/spack:develop to developGeorge Todd Gamblin1-2/+2
# By David Shrader # Via David Shrader * commit '1c1e7295f02b123310efe88b0a23a9cb95cce2f4': Fix bug in checksum reporting
2014-05-27Fix for SPACK-28: truncated output in docs.Todd Gamblin1-1/+0
2014-05-27Add index_by function to llnl.util.langTodd Gamblin1-0/+58
2014-05-20Fix bug in checksum reportingDavid Shrader1-2/+2
The number of variables in the string printed for a checksum failure was not correct. Now a useful error message is printed instead of a stack trace and a TypeError.
2014-05-17Better version substitution and wildcard URLs.Todd Gamblin6-63/+156
- Previously, URLs like this wouldn't work with spack create: http://www.hdfgroup.org/ftp/HDF5/current/src/hdf5-1.8.13.tar.bz2 The '5' in hdf5 would interfere with version wildcard substitution beacuse the wildcard regex would subsume it. We now take the name of the package OUT of the URL before splitting it up and adding version wildcards. This prevents names with numbers from breaking url.wildcard_version. Also added a package sanity check test that ensures all builtin packages work with wildcard_version.
2014-05-16Bugfix in error message.Todd Gamblin1-1/+1
2014-05-04Allow widths in spec format strings.Todd Gamblin2-9/+30