Add CompilerSpec class and loading capability.

- 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.
This commit is contained in:
Todd Gamblin
2014-05-17 13:01:00 -07:00
parent 45baf73c34
commit 285c5444ab
11 changed files with 177 additions and 92 deletions

View File

@@ -107,7 +107,7 @@ Package class names
The **class name** (``Libelf`` in our example) is formed by converting
words separated by `-` or ``_`` in the file name to camel case. If
the name starts with a number, we prefix the class name with
``Num_``. Here are some examples:
``_``. Here are some examples:
================= =================
Module Name Class Name
@@ -115,7 +115,7 @@ the name starts with a number, we prefix the class name with
``foo_bar`` ``FooBar``
``docbook-xml`` ``DocbookXml``
``FooBar`` ``Foobar``
``3proxy`` ``Num_3proxy``
``3proxy`` ``_3proxy``
================= =================
The class name is needed by Spack to properly import a package, but