summaryrefslogtreecommitdiff
path: root/bin
AgeCommit message (Collapse)AuthorFilesLines
2016-12-13Add a test to ensure package names have the right case. (#2562)Todd Gamblin1-2/+2
2016-12-05Use JSON for the database instead of YAML. (#2189)Todd Gamblin1-8/+0
* Use JSON for the database instead of YAML. - JSON is much faster than YAML *and* can preserve ordered keys. - 170x+ faster than Python YAML when using unordered dicts - 55x faster than Python YAML (both using OrderedDicts) - 8x faster than C YAML (with OrderedDicts) - JSON is built into Python, unlike C YAML, so doesn't add a dependency. - Don't need human readability for the package database. - JSON requires no major changes to the code -- same object model as YAML. - add to_json, from_json methods to spec. * Add tests to ensure JSON and YAML don't need to be ordered in DB. * Write index.json first time it's not found instead of requiring reindex. * flake8 bug.
2016-11-16-s now includes the file and line number with infoMatthew Krafczyk1-0/+3
The option -s now causes file and line number information to be printed along with any invocation of msg, info, etc... This will greatly ease debugging.
2016-10-30Bugfix: '::' only worked on top-level key in config.Todd Gamblin1-1/+2
- generalized and fixed to work with any key in YAML file - simplified schema writing, as well - add more unit tests for the config system - Rename test/yaml.py to test/spack_yaml.py - Add test/yaml.pyc to ignored pyc files.
2016-10-12Use cYAML if it is available in Python. (#2010)Todd Gamblin1-0/+10
2016-10-11Make `insecure` option work with curl AND git. (#1786)Todd Gamblin1-1/+1
2016-09-28Prohibit Python3 in Python version check. (#1872)Elizabeth Fischer1-2/+2
2016-09-22Fix sbang for perl (#1802)Eric1-2/+6
* Perform shebang fix for all files * Fix sbang for perl scripts Otherwise perl would look at the #! line and call sbang again, resulting in an infinite loop.
2016-08-30Keep dashes in command names, translate to underscoresAdam J. Stewart1-2/+3
2016-08-30Make subcommands importable, '-' -> '_', fixes #1642Adam J. Stewart1-2/+9
2016-08-29Change spack --profile sort key for 2.6 compatibility. (#1656)Todd Gamblin1-1/+1
2016-08-10Make Spack core PEP8 compliant.Todd Gamblin1-5/+10
2016-06-26Merge pull request #1030 from opoplawski/externalTodd Gamblin1-1/+1
Remove last two remaining from external imports
2016-06-23Make sbang handle luaTodd Gamblin1-0/+11
- use --! instead of #! for patched lua scripts.
2016-06-08Also remove from external from bin/spackOrion Poplawski1-1/+1
2016-05-26Fixed backwards compatibility for compilers.yaml config fileGregory Becker1-0/+3
2016-05-11Correct LLNL LGPL license template for clarity.Todd Gamblin3-16/+40
2016-04-12fix : proper update of config file (before it was discarding architectures ↵alalazo1-1/+1
that were not the current one) fixes #774
2016-03-05Fix #104, #54: issues with overlong shebang in deep directories.Todd Gamblin1-0/+84
This does several things: - Add `sbang`: a script to run scripts with long shebang lines. - Documentation for `sbang` is in `bin/sbang`. - Add an `sbang` hook that filters the `bin` directory after install and modifies any scripts wtih shebangs that are too long to use `sbang` instead. - `sbang` is at the top level, so it should be runnable (not much we can do if spack itself is too deep for shebang) - `sbang`, when used as the interpreter, runs the *second* shebang line it finds in a script. - shoud fix issues with too long shebang paths.
2016-01-25Fix variable name bugAdam J. Stewart1-4/+4
2016-01-19Merge branch 'mplegendre-multi_pkgsrc_roots' into developTodd Gamblin1-2/+2
- This moves var/spack/packages to var/spack/repos/builtin/packages. - Packages that did not exist in the source branch, or were changed in develop, were moved into var/spack/repos/builtin/packages as part of the integration. Conflicts: lib/spack/spack/test/unit_install.py var/spack/repos/builtin/packages/clang/package.py
2016-01-17Merge pull request #202 from scheibelp/features/unittest-xml-output-noseTodd Gamblin1-0/+8
Features/unittest xml output nose
2015-12-25Merge branch 'develop' into mplegendre-multi_pkgsrc_rootsTodd Gamblin2-3/+25
Conflicts: lib/spack/spack/cmd/create.py lib/spack/spack/cmd/extensions.py lib/spack/spack/cmd/fetch.py lib/spack/spack/cmd/uninstall.py lib/spack/spack/config.py lib/spack/spack/database.py lib/spack/spack/directory_layout.py lib/spack/spack/packages.py lib/spack/spack/spec.py
2015-12-21fix a few comment typosMike Nolta1-1/+1
2015-12-16added option to enable pdb debugGregory L. Lee1-0/+5
2015-12-09Change github.com/scalability-llnl to github.com/llnl everywhere.Todd Gamblin2-2/+2
2015-12-02Try to be more careful to only suppress the warning about nose already beingPeter Scheibel1-1/+1
imported. Other warnings should be output.
2015-11-28Fix spack.db -> spack.repo in bin/spackTodd Gamblin1-2/+2
2015-11-25On systems which have already installed nose (perhaps an older version)Peter Scheibel1-0/+8
importing nose (which is also in Spack's external/ directory) outputs a warning (since there is more than one nose package). This avoids printing the warning to the user.
2015-11-23Add a fix/warning so that stale .pyc files don't kill Spack.Todd Gamblin1-0/+15
- Can't think of a better way to do this. - The externals integration will cause spack to die in weird ways for users who just pull from develop.
2015-11-12Merge branch 'develop' into mplegendre-multi_pkgsrc_rootsTodd Gamblin1-1/+1
Conflicts: lib/spack/spack/__init__.py lib/spack/spack/directives.py lib/spack/spack/packages.py
2015-11-11Insert lib/spack/external into sys.path. This avoids cases where the systemPeter Scheibel1-0/+2
python install and lib/spack/external have the same library installed. This requires modifying the names of some modules in lib/spack/external in cases where both the system python and backported features of future python versions (i.e. after 2.6) are used (previously distinguished by "from external import X" and "import X").
2015-10-08update warning message for spack -k.Todd Gamblin1-1/+1
- warning said it didn't do checksums; really does.
2015-09-17WIP for Matt's branchTodd Gamblin1-2/+2
2015-06-06Cleanup and consolidate error handlingTodd Gamblin1-8/+1
2015-05-18Merge branch 'features/optional-deps' into developTodd Gamblin1-0/+4
This includes: - Much better variant support (+debug/-debug) - Optional dependency support (depends_on(... , when='<condition>') - New config file format (YAML in ~/.spack) - New Spec format (YAML in $prefix/.spack/spec.yaml)
2015-05-17Add help on specs to top of spack -hTodd Gamblin1-1/+15
2015-05-12Add debug handler to print a stacktrace on Ctrl-C in debug mode.Todd Gamblin1-0/+4
2015-04-07Allow spack install -j to throttle make jobs.Todd Gamblin1-5/+5
2015-02-15Add profile option to spack script.Todd Gamblin1-40/+49
2015-01-05Allow commands to return error codes.Todd Gamblin1-1/+9
2014-12-19Fix for SPACK-50Todd Gamblin1-1/+2
Bad format string in version check.
2014-11-07Improved website scraping.Todd Gamblin1-0/+1
2014-10-15Add test cases for mirroring.Todd Gamblin1-1/+1
2014-08-20Merge branch 'features/python-2.6-compatibility' into developTodd Gamblin1-3/+3
- Changed 'import argparse' to 'from external import argparse' in conflicts. Conflicts: lib/spack/spack/cmd/dotkit.py lib/spack/spack/cmd/unuse.py lib/spack/spack/cmd/use.py
2014-08-16Consolidate most module code into spack.modules and spack.cmd.moduleTodd Gamblin1-0/+7
- 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-10Test cases pass; Spack supports Python 2.6!Todd Gamblin1-2/+2
2014-08-10Remvoe dependence on v2.7 argparse by including argparse.Todd Gamblin1-1/+1
2014-07-02Add TAU package and routines to filter files, fix sed calls.Todd Gamblin1-0/+1
- 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-06-24spack mirror now checksums fetched archives.Todd Gamblin1-1/+1