summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorFilesLines
2013-12-25Some fixes recommended by PyCharmTodd Gamblin13-25/+27
2013-12-25Starting on packaging docs.Todd Gamblin3-77/+98
2013-12-24make create and checksum consistent.Todd Gamblin6-97/+183
- create now searches and prompts for checksums. - makes package creation easier
2013-12-23spack checksum works.Todd Gamblin3-25/+56
2013-12-23spack edit fixed.Todd Gamblin2-7/+1
2013-12-23Spack create works again w/new package format.Todd Gamblin5-10/+75
2013-12-23Another multimethod test for vdepsTodd Gamblin2-9/+8
2013-12-23constrain() now consistent with satisfies()Todd Gamblin5-32/+103
- Added checks to constrain() so that it is consistent with satisfies() - Added many more test cases for satisfiability and constraints on deps - Virtual packages are handled properly in satisfies() and constrain() - bugfix: mpileaks^mpich2 would satisfy mpileaks^mpi@3: - this case is now handled.
2013-12-22Fix for SPACK-13, and satisfies() now handles deps.Todd Gamblin11-121/+419
Added more test cases for multimethods. In doing so, (re)discovered that satisfies() really needs to handle dependencies properly. Implemented support for dependencies in satisfies, but constrain() now isn't consistent (as we do not currently constrain deps), so need to implement that. Virtual dependency support probably needs some deeper thought. i.e., there is probably an intermediate DAG form that would make the needed checks easier. Right now we have to build ProviderIndexes to figure out how virtual dependencies are set up. If the vdep were preserved in the DAG, then we could just check for things like incompatible providers directly.
2013-12-21SPACK-2: Multimethods for specs.Todd Gamblin11-220/+363
- multi_function.py -> multimethod.py - Added @when decorator, which takes a spec and implements matching for method dispatch - Added multimethod unit test, covers basic cases.
2013-12-21More docs.Todd Gamblin3-8/+15
2013-12-21Color tweaks for find.Todd Gamblin2-22/+47
2013-12-21Docs for spack findTodd Gamblin1-7/+90
2013-12-21Made formatting specs easier with format() syntax.Todd Gamblin2-32/+77
- Replaced existing str_no_deps() function with more flexible format() function. - Spec.tree() can take a format argument now, as well.
2013-12-21SPACK-1: Multi-version installation now works front to back with specs.Todd Gamblin40-235/+617
2013-12-18Make dirty installs part of package lifecycleTodd Gamblin1-1/+1
2013-12-18More on installing with virtual packagesTodd Gamblin1-0/+29
2013-12-18Added a target to upload docs automatically.Todd Gamblin1-0/+3
2013-12-18Finished basic usage.Todd Gamblin15-167/+512
2013-12-12Start of basic documentationTodd Gamblin22-129/+944
2013-12-12Better info command.Todd Gamblin2-0/+38
2013-12-09Documentation skeletonTodd Gamblin19-0/+1340
2013-12-09use get instead of setdefault for kwargs.Todd Gamblin1-4/+4
2013-12-09type(foo) == bar -> isinstance(foo, bar)Todd Gamblin5-19/+21
Changed type checks in most places.
2013-12-08Additional circular reference checkingTodd Gamblin1-4/+8
2013-12-08Fixes for virtual packages.Todd Gamblin14-117/+393
- Added more tests - cleaned up spec preorder traversal - fixed concretization
2013-12-07Better test output -- include totals.Todd Gamblin2-24/+55
2013-12-07Added support for virtual dependencies ("provides")Todd Gamblin10-155/+533
2013-12-01More stage tests.Todd Gamblin2-14/+49
2013-11-24Reworked stage paths to allow %u for username. Added stage test.Todd Gamblin8-66/+385
2013-11-23Gracefully handle lack of network connection.Todd Gamblin3-19/+31
2013-11-23Generalize package relations like depends_on, provides, conflicts.Todd Gamblin3-19/+34
All of these do the same thing. So they are all now generalized to a single closure function; just the name of the updated variable in the package is different.
2013-11-23Move concretization into its own class.Todd Gamblin5-56/+73
Allows easy overriding of a single policy.
2013-11-23Cleanup and comments.Todd Gamblin8-31/+60
2013-11-23Fix virtual method.Todd Gamblin1-2/+9
2013-11-23Added web spider capability for listing versions.Todd Gamblin18-55/+311
2013-11-20Update libdwarf URL.Todd Gamblin2-9/+8
2013-10-26First cut concretization works, with tests.Todd Gamblin18-119/+268
Mock packages now all have their own version lists.
2013-10-18Added unit tests for spec normalization.Todd Gamblin3-25/+135
2013-10-17spack test runs all tests by defaultTodd Gamblin1-6/+6
'spack test -a' formerly ran all test and 'spack test' listed available tests. Now, 'spack test' runs all tests and 'spack test -l' lists available ones.
2013-10-17spec flatten, normalize, validate; package validateTodd Gamblin21-167/+641
New operations for manipulating spec and package DAGs. For specs: flatten: gather all deps to the root normalize: Merge constraints and make spec match package DAG For packages: validate_dependencies: Make sure spec constraints in package DAG are sane. Added tests for above methods. Also added beginnings of concretization logic, to turn abstract spec into a concrete one. Still need proper tests for normalize().
2013-10-15Spec constraints and normalization now work.Todd Gamblin17-191/+473
- Specs can be "constrained" by other specs, throw exceptions when constraint can't be satisfied. - Normalize will put a spec in DAG form and merge all package constraints with the spec. - Ready to add concretization policies for abstract specs now.
2013-10-11Command to launch interpreter with spack in sys.pathTodd Gamblin1-0/+21
2013-10-11Command to run pydoc on spack classes.Todd Gamblin1-0/+9
2013-10-07Refactor utils into separate modules.Todd Gamblin14-225/+221
2013-10-07Start to make a bigger package out of utils.pyTodd Gamblin14-79/+111
- moved none_compare functions to util.none_high and util.none_low packages - renamed utils.py to util package
2013-10-07Checkpoint commit: much-improved spec class.Todd Gamblin26-361/+1403
Still organizing things.
2013-06-29Add spec architeccture, redo color output support.Todd Gamblin5-69/+128
2013-06-29Clean up half-downloaded tarballs.Todd Gamblin1-5/+11
2013-06-29Adding expression syntax for console colors.Todd Gamblin1-0/+162