Ben Boeckel
36decbfa69
tty: do not break long words
...
These "words" tend to be file paths which are best left unbroken.
Fixes #1057 .
2016-06-15 12:22:35 -04:00
Denis Davydov
a860a3d614
superlu-dist: avoid harcoding blas/lapack/mpi; remove preferred version
2016-06-15 18:21:13 +02:00
Todd Gamblin
e7ced54369
Correct LLNL LGPL license template for clarity.
2016-05-11 21:22:25 -07:00
Todd Gamblin
220c72d67f
Merge branch 'features/blas-lapack-hardening' into develop
2016-03-31 11:37:09 -07:00
Todd Gamblin
8b45d6f84f
Merge pull request #658 from davydden/metis_parmetis_darwin
...
metis/parmetis/oce/boost: correct install_name on Darwin via a global tool
2016-03-27 16:10:05 -07:00
Denis Davydov
7eca1284c8
metis/parmetis/boost/oce/scalapack: correct install_name on Darwin via a global function.
2016-03-28 00:22:25 +02:00
Todd Gamblin
cde3320582
Add a method to find the containing directory of a library.
2016-03-27 11:32:42 -07:00
Todd Gamblin
b0b882cbb3
Speed up directives by skipping debug info in stack traversal.
...
- `caller_locals()` doesn't need debug info, only frame locals.
- `get_calling_module()` doesn't either.
- Changed calls to `inspect.stack()` -> `inspect.stack(0)`
2016-03-27 11:30:09 -07:00
Todd Gamblin
003fd4d834
Optimize __eq__ and __ne__ in key_ordering
...
- use `is` when possible before calling `_cmp_key()`
2016-03-14 04:55:30 -07:00
Todd Gamblin
214deeda54
Merge branch 'features/noexpand' into develop
...
Conflicts:
lib/spack/llnl/util/filesystem.py
2016-03-08 03:29:57 -08:00
Todd Gamblin
ada675dea2
Merge branch 'features/sbang' into develop
...
Conflicts:
lib/spack/llnl/util/filesystem.py
2016-03-06 19:30:19 -08:00
Todd Gamblin
240ada5775
Add expand=False
option for URL downloads.
...
- Allows skipping the expand step for downloads.
- Fixed stage so that it knows expansion didn't fail when there is a
no-expand URLFetchStrategy.
- Updated docs to reflect new option, and provided an example.
2016-03-06 16:51:09 -08:00
Todd Gamblin
ad103dcafa
Small refactor: add keep parameter to stage, get rid of stage.destroy call.
...
- package.py uses context manager more effectively.
- Stage.__init__ has easier to understand method signature now.
- keep can be used to override the default behavior either to keep
the stage ALL the time or to delete the stage ALL the time.
2016-03-05 20:00:30 -08:00
Todd Gamblin
14d48eba46
Revert c5d9ee8924
for bug fixes.
...
- This reverts commit c5d9ee8924
.
- merged too soon before
- reverting and fixing bugs now.
Conflicts:
lib/spack/spack/mirror.py
lib/spack/spack/package.py
2016-03-05 18:40:28 -08:00
Todd Gamblin
fc6aa7374a
Fix #104 , #54 : issues with overlong shebang in deep directories.
...
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-03-05 04:18:48 -08:00
Todd Gamblin
c5d9ee8924
Revert "refactoring proposal : turn Stage into a context manager"
2016-03-03 14:41:20 -08:00
alalazo
7f4a69319a
Merge branch 'develop' of https://github.com/LLNL/spack into refactoring/stage
...
Conflicts:
lib/spack/spack/package.py
2016-03-03 10:19:45 +01:00
alalazo
4d63544fe9
remove_link_tree : moved to llnl.util.filesystem
2016-03-02 16:55:57 +01:00
alalazo
901e4851b9
_cleanup_dead_links : factored method into a function and put it in llnl.filesystem
2016-03-02 16:19:32 +01:00
Todd Gamblin
c488f7c4d8
Fix bug in install permission setting.
2016-03-01 23:57:34 -08:00
Todd Gamblin
8d6342c53d
Merge branch 'mplegendre-multi_pkgsrc_roots' into develop
...
- 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-19 01:16:08 -08:00
Todd Gamblin
c1e57e49ae
Merge pull request #202 from scheibelp/features/unittest-xml-output-nose
...
Features/unittest xml output nose
2016-01-17 19:14:49 -08:00
Todd Gamblin
05b30bf83e
Make text wrapping off by default in tty, add a kwarg for it.
2016-01-14 10:26:31 -08:00
Todd Gamblin
c65fd3a289
Merge branch 'develop' into mplegendre-multi_pkgsrc_roots
...
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-25 16:35:55 -08:00
Todd Gamblin
73ea15db8e
Merge pull request #208 from epfl-scitas/features/resource_directive
...
resource directive : implementation + clang / llvm use case
2015-12-21 10:34:16 -08:00
Todd Gamblin
c41b9b7ddc
Change github.com/scalability-llnl to github.com/llnl everywhere.
2015-12-09 01:24:15 -08:00
Massimiliano Culpo
1fe626ec7c
resource directive : sketch of implementation + clang / llvm use case
2015-11-26 17:53:33 +01:00
Peter Scheibel
0adf93853d
Update log_output to handle cases where sys.stdout/stderr streams do not have
...
an associated file descriptor (e.g. holds for nose tests where sys.stdout is
assigned to a StringIO object)
2015-11-24 17:58:17 -08:00
Todd Gamblin
55662eca69
Merge branch 'develop' into mplegendre-multi_pkgsrc_roots
...
Conflicts:
lib/spack/spack/__init__.py
lib/spack/spack/directives.py
lib/spack/spack/packages.py
2015-11-12 15:16:06 -08:00
Todd Gamblin
a1c42c2753
Merge Greg Becker's build database support into develop.
2015-10-29 02:22:20 -07:00
Todd Gamblin
a58ae0c5d0
Build database working with simple transaction support; all tests passing.
2015-10-27 16:36:44 -07:00
Todd Gamblin
bf8479bec6
Fix stupid lock bug.
...
- Code simplification ignored case where exception was raised.
- If LockError was raised, read and write counts were incremented erroneously.
- updated lock test.
2015-10-27 16:34:26 -07:00
Todd Gamblin
af7b96c14a
Lock acquires return True/False depending on whether they got POSIX lock.
2015-10-27 00:35:06 -07:00
Ben Boeckel
9d90cb6962
python: use the setdefault method on dict
...
It allows more concise code and skips some key lookups.
2015-10-26 17:38:19 -04:00
Todd Gamblin
ead8ac58c6
Working Lock class, now uses POSIX fcntl locks, extensive unit test.
...
- llnl.util.lock now uses fcntl.lockf instead of flock
- purported to have more NFS compatibility.
- Added an extensive test case for locks.
- tests acquiring, releasing, upgrading, timeouts, shared, & exclusive cases.
2015-10-24 19:57:43 -07:00
Todd Gamblin
d16095c856
Add forgotten file from previous commit.
2015-10-13 10:35:19 -07:00
Todd Gamblin
2c81875019
Fix bug in colify color handling.
2015-10-12 14:44:41 -07:00
Todd Gamblin
e17ad6a684
Simplify lock context managers.
2015-09-17 01:05:19 -07:00
Todd Gamblin
ccf311c9c6
Several changes to DB implementation.
...
1. Database stores a file version, so we can add to it in the future.
2. Database indexed by hashes and not numerical indexes.
3. Specs built by database have consistent hashes and it's checked.
4. minor naming and whitespace changes.
2015-09-17 00:16:12 -07:00
Gregory Becker
f406fcb843
Fixed several issues from code review
...
Most importantly wrote the Lock, Read_Lock_Instance, and Write_Lock_Instance classes in lock.py
Updated the locking in database.py
TODO: Lock on larger areas
2015-08-31 09:38:38 -07:00
Todd Gamblin
360b307f68
Save progress. import gov.llnl.spack.mpich works.
2015-08-24 09:14:16 -07:00
Todd Gamblin
92f398a897
Better @memoized
decorator.
2015-08-16 12:50:39 -07:00
Todd Gamblin
6ed5dd7427
log_output now allows echo to be toggled wtih 'v' key
2015-06-20 20:20:28 -07:00
Todd Gamblin
5d7a6c0c46
Add FileFilter convenience class to llnl.util.filesystem.
2015-06-06 15:26:48 -07:00
Saravan Pantham
454d06c25c
Removed autosave files from previous commit.
2015-06-06 15:26:37 -07:00
Saravan Pantham
c174fe6199
Fixed BLAS and Lapack installations
2015-06-06 15:26:31 -07:00
Todd Gamblin
92c21d7134
debug instead of info logging in llnl.util.filesystem
2015-05-29 17:21:30 -07:00
Todd Gamblin
0035100186
SPACK-69: Add context manager to fork and log output in a with block.
2015-05-29 17:20:08 -07:00
Todd Gamblin
9b40d93fc2
Add ability to force color mode even if terminal is NOT a tty
2015-05-29 17:19:03 -07:00
Todd Gamblin
ceecd2ce41
Add ability to test whether tty verbose or debug is enabled.
2015-05-29 17:18:33 -07:00
Todd Gamblin
1f8ce403dc
Modularize directives. Now each directive specifies its storage.
2015-05-10 12:24:03 -07:00
Todd Gamblin
0944ba120c
relations are now "directives", and code is cleaned up.
2015-05-10 12:24:03 -07:00
Todd Gamblin
560f2c299a
Add install_tree, force_symlink helper functions.
2015-03-12 10:32:29 -07:00
Todd Gamblin
d49c98188a
Add an override to colify so we can set terminal dimensions.
2015-02-23 01:23:30 -08:00
Todd Gamblin
67db8ddca8
Factor ignore logic into a predicate builder.
2015-02-17 00:21:15 -08:00
Todd Gamblin
614c22fc1b
Allow forced deactivation -- best effort unlinking
...
spack deactivate -f will unlink even if Spack thinks the package isn't enabled.
Made deactivate routines idempotent.
2015-02-16 12:41:22 -08:00
Todd Gamblin
2d9190d264
Add extensions command.
2015-02-02 11:20:36 -08:00
Todd Gamblin
6b90017efa
Fixed dumb link_tree bug, added test for link tree.
2015-02-02 11:20:35 -08:00
Todd Gamblin
de91c95e8e
Ability to ignore files in activate/deactivate for extensions.
2015-02-02 11:19:54 -08:00
Todd Gamblin
82946d2914
Move symlink tree routines to LinkTree class.
2015-02-02 11:19:52 -08:00
Todd Gamblin
9977543478
Added feature: package extensions
...
- packages can be "extended" by others
- allows extension to be symlinked into extendee's prefix.
- used for python modules.
- first module: py-setuptools
2015-02-02 11:19:00 -08:00
Todd Gamblin
e6b4530234
Add is_exe function to filesystem.
2015-01-22 13:52:28 -08:00
Todd Gamblin
a6e00f6086
Fix ColorStream
2014-12-29 01:05:21 -08:00
Todd Gamblin
860f834aad
spack graph allows plotting specific packages.
2014-12-26 13:52:49 -08:00
Todd Gamblin
0bc861db6e
Fix up bzip2 install
2014-12-25 17:55:19 -08:00
Todd Gamblin
20388ece86
Clearer code in filter_file.
2014-12-25 16:07:39 -08:00
Todd Gamblin
11cffff943
colify handles ansi color input directly; no more decorator.
2014-12-02 22:32:15 -08:00
Todd Gamblin
40b4fa5443
Better spack find view.
2014-12-01 23:14:06 -08:00
Todd Gamblin
e15316e825
index_by supports compound index keys.
2014-12-01 23:13:09 -08:00
Todd Gamblin
72c753b93e
Colify now supports fixing the number of columns.
2014-12-01 21:29:01 -08:00
Todd Gamblin
22e4d11010
Cleanup code in colify.
2014-11-23 16:19:26 -08:00
Todd Gamblin
287b04e50a
Bugfix in terminal_size()
2014-11-23 17:55:37 -06:00
Todd Gamblin
eba13b8653
Checksum warning now prompts for override.
2014-11-08 23:20:01 -08:00
Todd Gamblin
b97ee67a4b
Working GCC package.
2014-11-05 09:54:43 -08:00
Todd Gamblin
4ecc7e1c93
Document file filtering functions.
2014-10-27 19:53:55 -07:00
Todd Gamblin
e2af2a27bf
Merge branch 'features/git-fetching' into develop
...
Conflicts:
lib/spack/docs/packaging_guide.rst
lib/spack/spack/cmd/info.py
lib/spack/spack/package.py
lib/spack/spack/stage.py
2014-10-27 19:53:05 -07:00
Todd Gamblin
36a87f5bf9
Update documentation to add an auto-generated list of packages.
2014-10-08 03:08:40 -07:00
Todd Gamblin
4bde771970
Fix for SPACK-39: Concretization was too restrictive.
...
- concretize_version() now Use satisfies(), not intersection.
- version class updated with better intersection/union commands
- version now 1.6 "contains" 1.6.5
- added test for new version functionality
- remove none_high and none_low classes
- version module is now self-contained; save for external 2.7
functools.total_ordering for 2.6 compatibility.
2014-10-07 23:22:45 -07:00
Todd Gamblin
a8ed1ec414
Minor argparse improvement.
2014-09-29 20:00:00 -07:00
Todd Gamblin
3bd52678be
MPICH sets MPI compilers to use real compilers and not spack wrappers.
2014-09-27 21:36:42 -07:00
Todd Gamblin
c55041e9d4
Partial commit of more packages.
2014-08-04 07:54:22 -07:00
Todd Gamblin
1ad474f1a9
Allow per-version URLs instead of one single URL per package.
2014-07-30 23:30:07 -07:00
Todd Gamblin
295ffd8c50
Adding dotkit support to TAU.
...
- 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-08 01:58:20 -07:00
Todd Gamblin
0551638944
Add TAU package and routines to filter files, fix sed calls.
...
- 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-02 23:24:10 -07:00
Todd Gamblin
b6740cf1d1
Make debug and verbose output work properly.
2014-06-22 12:50:34 -07:00
Todd Gamblin
4608b674e5
Minor cleanup and bug fixes.
2014-06-22 12:50:34 -07:00
Todd Gamblin
4665505936
Add index_by function to llnl.util.lang
2014-05-27 08:33:19 -07:00
Todd Gamblin
1f9dfeb9b5
Clean up find command, move code to utils.
2014-04-14 12:53:23 -07:00
Todd Gamblin
59a3b8dc67
Make SSL verification failures recommend spack -k
...
- Adds optional long message to SpackError
- tty now wraps long message text.
2014-04-13 16:38:15 -07:00
Todd Gamblin
9d01df9e8a
Moving utilities to a common LLNL package.
2014-03-14 16:21:15 -07:00