Mario Melara
b5216f6ec8
Commented out cxxflag. Not 100% sure it's needed
2015-12-11 12:07:32 -08:00
Mario Melara
31df2dd9dd
Fixed targets ti be x86_64, important note: have not tested this on linux machine
2015-12-11 12:04:47 -08:00
Mario Melara
fee88d289d
Rewrote docstrings for sys_type() and got rid of unused functions
2015-12-11 12:03:13 -08:00
Todd Gamblin
7526a89463
Fix #217 : Make package cache use DAG hash instead of sorted deps.
...
- Gets rid of last vestige of old-style specs.
- Uses new hashing for lookup
2015-12-11 02:17:17 -08:00
Tom Scogland
281a869ef6
fix path resolution for mirror packages, especially with dependency fetching
2015-12-10 09:24:01 -08:00
Tom Scogland
786f4cd2c2
add dependency fetching to mirror creation
2015-12-10 08:32:51 -08:00
Tom Scogland
25f2b01a3c
fetch: add options to fetch missing or all deps
...
Small additions to fetch to make it easier to fetch all files necessary for a
build on a system without network connectivity.
2015-12-10 07:27:06 -08:00
alalazo
20e67bc5e6
clang : solve the issue with missing default include paths for OpenMP and libc++
...
resource : support for finer grained linking of resources
2015-12-09 17:15:26 +01:00
Todd Gamblin
537451f0b1
bugfix: doc build needed additional sys.path due to externals change.
2015-12-09 01:32:12 -08:00
Todd Gamblin
c41b9b7ddc
Change github.com/scalability-llnl to github.com/llnl everywhere.
2015-12-09 01:24:15 -08:00
Peter Scheibel
530e049d4a
Added nose 1.3.7 source along with with the lgpl license (renamed from lgpl.txt
...
to LICENSE)
2015-12-04 17:55:20 -08:00
Massimiliano Culpo
50bd4d2e4e
mirror : deals correctly with variants that optionally enable resources (if they are archive URLs)
2015-12-03 11:21:11 +01:00
Mario Melara
028cca16e6
Got rid of the unusued default strategy=None
2015-12-02 10:15:33 -08:00
Massimiliano Culpo
39a3cfd4d9
reource directive accepts 'basename' keyword
...
llvm : libc++ variant
2015-12-02 12:24:37 +01:00
Massimiliano Culpo
4b2168ab8e
resources : added missing check after fetch
2015-12-02 10:13:39 +01:00
Mario Melara
d7fdb8e015
Got rid of hard coded strings for adding default
2015-12-01 11:57:54 -08:00
Mario Melara
58f2b39bc8
Changed default to CPU_TARGET env var. Helps deal with target differences between cori and edison
2015-12-01 11:57:17 -08:00
Mario Melara
89fbe4fdfa
Changed add_target to include variables rather than hard-coded strings
2015-12-01 11:55:38 -08:00
Massimiliano Culpo
b85dccca92
resources : added error handling for destination keyword on resource directive
2015-12-01 15:12:26 +01:00
Massimiliano Culpo
d3d9b5401b
resources : changed name of stage folder
2015-12-01 13:26:44 +01:00
Massimiliano Culpo
a075d581ef
resource : fetch strategy constructed from kwargs instead or hardcoded URLFetchStrategy
2015-12-01 12:56:46 +01:00
Todd Gamblin
dfcf567de0
Add a cleaned up repo command.
2015-11-28 19:00:24 -08:00
Todd Gamblin
73ef06018e
Integrate namespace attribute into spec, spec DAG, spec YAML.
2015-11-28 16:26:23 -08:00
Todd Gamblin
7383bd393e
Fixed bug #42 : problem with satisfies() for virtual dependencies.
...
- _cross_provider_maps() had suffered some bit rot (map returned was
ill-formed but still worked for cases with one vdep)
- ProviderIndex.satisfies() was only checking whether the result map
was non-empty. It should check whether all common vdeps are *in*
the result map, as that indicates there is *some* way to satisfy
*all* of them. We were checking whether there was some way to
satisfy *any one* of them, which is wrong.
- Above would cause a problem when there is more than one vdep provider.
- Added test that covers this case.
- Added `constrained()` method to Spec. Analogous to `normalized()`:
`constrain():constrained() :: normalize():normalized()`
2015-11-27 23:06:18 -08:00
Todd Gamblin
763d850a0e
Add tests for importing packages directly.
...
Added test for, e.g.:
import spack.pkg.builtin.mock.mpich
import spack.pkg.builtin.mock.mpich as mpich
from spack.pkg.builtin.mock.mpich import Mpich
Among others. These ensure that direct package imports work so that
packages can be extended.
2015-11-26 14:23:12 -08:00
Todd Gamblin
89d5127900
New, cleaner package repository structure.
...
Package repositories now look like this:
top-level-dir/
repo.yaml
packages/
libelf/
package.py
mpich/
package.py
...
This leaves room at the top level for additional metadata, source,
per-repo configs, indexes, etc., and it makes it easy to see that
something is a spack repo (just look for repo.yaml and packages).
2015-11-26 14:19:27 -08:00
Massimiliano Culpo
1fe626ec7c
resource directive : sketch of implementation + clang / llvm use case
2015-11-26 17:53:33 +01:00
Peter Scheibel
fc96f62794
Updated documentation/naming in tally_plugin to reflect that the count of the
...
total number of tests run excludes skipped tests
2015-11-25 18:08:17 -08:00
Peter Scheibel
d50a18d9eb
XML output for unit tests is now enabled with an option (disabled by default)
2015-11-25 17:10:45 -08:00
Peter Scheibel
60f7756626
Executable.__call__ original semantics were to avoid redirecting process output
...
to the output stream if return_output was set. This branch undid that and this
commit restores those semantics.
2015-11-25 12:28:43 -08:00
Todd Gamblin
04f032d6e3
Rename spack.db -> spack.repo
...
Making distinction between install database and package repositories clearer.
2015-11-25 10:01:44 -08:00
Todd Gamblin
e6d232bfef
Rename packages.py to repository.py, PackageFinder to RepoPath.
2015-11-25 09:58:10 -08:00
Peter Scheibel
18dea24df8
Use the xunit nose plugin to generate JUnit XML test results from Spack's unit
...
tests.
2015-11-24 19:08:37 -08: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
Peter Scheibel
5081ba6802
It appears the same test object was returned multiple times for different
...
unit tests, so tracking tests with sets wouldn't work unless I extracted the
details relevant to the particular test. For now a simple count will work so
using a set was unnecessary anyways.
2015-11-24 10:45:07 -08:00
Peter Scheibel
70049185a5
Activation of Tally plugin to count tests. It doesn't appear to be actually
...
counting the individual unit tests correctly so I need to chase that down.
2015-11-24 10:39:42 -08:00
Peter Scheibel
099fa1df34
Use nose to run unit tests.
...
1. Adding a plugin to keep track of the total number of tests run as well as the
number of tests with failures/errors.
2. Some nose plugins (including xunit which will be added in a future commit)
assign stdout to a stream object that does not have a .fileno attribute.
spack.util.executable.Executable now avoids passing stdout to subprocess (and
always uses subprocess.PIPE)
TODO:
1. Still need to figure out how to activate the plugin (as of now it is
being ignored by nose). Newer versions of nose appear to make this simpler
(e.g. the "addplugins" argument to nose.run)
2. Need to include new version of nose in order to use xunit
2015-11-23 18:59:48 -08:00
Todd Gamblin
cf3d236b9f
Merge branch 'scheibelp-features/externaldeps' into develop
2015-11-23 17:50:49 -08:00
Todd Gamblin
1447fd0a12
Merge pull request #160 from SteVwonder/stevwonder/develop
...
Fixed -l flag for 'spack extensions'
2015-11-23 15:50:18 -08:00
Todd Gamblin
8c06b92225
Working PackageFinder / Repo
2015-11-22 20:28:59 -08:00
Tom Scogland
5e93dd6592
modified warning to reference spack clean
...
clean --dist has been removed, command fixed to something that works.
2015-11-20 11:49:46 -08:00
Mario Melara
fceb5a75b0
Adding new files to compilers
2015-11-13 11:53:38 -08:00
Mario Melara
bfd05d3d27
Changed name of file and class to craype to avoid spack freaking out about versions
2015-11-13 11:48:49 -08:00
Mario Melara
72fa3c0492
Added craype support
2015-11-13 11:48:15 -08:00
Mario Melara
9458f7c7d0
Got rid of my old method of finding in LOADEDMODULES
2015-11-13 11:47:36 -08:00
Mario Melara
a5ba69d68d
Added a _cmp_key for the architecture class
2015-11-13 11:46:13 -08:00
Todd Gamblin
38fdd063d9
Fix and move NamespaceTrie to spack.util.naming
...
- fix up routines in namespace trie.
- trie can now hold intermediate elements.
- trie now has a test case.
2015-11-12 15:17:39 -08:00
Todd Gamblin
72c9604bcb
Small fix to prevent this test from interfering with others.
2015-11-12 15:17:09 -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
Gregory Becker
7c89f9d18c
Added the basic ouline of a cray compiler class in lib/spack/spack/compilers/cray.py
2015-11-12 14:31:41 -08:00