Commit 240f1fd2 authored by Todd Gamblin's avatar Todd Gamblin
Browse files

Spack packages now PEP8 compliant.

parent 867121ca
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class A(Package):
"""Simple package with no dependencies"""
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class B(Package):
"""Simple package with no dependencies"""
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class C(Package):
"""Simple package with no dependencies"""
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Callpath(Package):
homepage = "https://github.com/tgamblin/callpath"
url = "http://github.com/tgamblin/callpath-1.0.tar.gz"
......
......@@ -25,6 +25,7 @@
from spack import *
import os
def check(condition, msg):
"""Raise an install error if condition is False."""
if not condition:
......@@ -40,15 +41,14 @@ class CmakeClient(Package):
depends_on('cmake', type='build')
def setup_environment(self, spack_env, run_env):
spack_cc # Ensure spack module-scope variable is avaiabl
check(from_cmake == "from_cmake",
"setup_environment couldn't read global set by cmake.")
check(self.spec['cmake'].link_arg == "test link arg",
"link arg on dependency spec not readable from setup_environment.")
"link arg on dependency spec not readable from "
"setup_environment.")
def setup_dependent_environment(self, spack_env, run_env, dspec):
spack_cc # Ensure spack module-scope variable is avaiable
......@@ -56,8 +56,8 @@ def setup_dependent_environment(self, spack_env, run_env, dspec):
"setup_dependent_environment couldn't read global set by cmake.")
check(self.spec['cmake'].link_arg == "test link arg",
"link arg on dependency spec not readable from setup_dependent_environment.")
"link arg on dependency spec not readable from "
"setup_dependent_environment.")
def setup_dependent_package(self, module, dspec):
spack_cc # Ensure spack module-scope variable is avaiable
......@@ -65,9 +65,8 @@ def setup_dependent_package(self, module, dspec):
"setup_dependent_package couldn't read global set by cmake.")
check(self.spec['cmake'].link_arg == "test link arg",
"link arg on dependency spec not readable from setup_dependent_package.")
"link arg on dependency spec not readable from "
"setup_dependent_package.")
def install(self, spec, prefix):
# check that cmake is in the global scope.
......
......@@ -25,6 +25,7 @@
from spack import *
import os
def check(condition, msg):
"""Raise an install error if condition is False."""
if not condition:
......@@ -39,7 +40,6 @@ class Cmake(Package):
version('3.4.3', '4cb3ff35b2472aae70f542116d616e63',
url='https://cmake.org/files/v3.4/cmake-3.4.3.tar.gz')
def setup_environment(self, spack_env, run_env):
spack_cc # Ensure spack module-scope variable is avaiable
spack_env.set('for_install', 'for_install')
......@@ -48,7 +48,6 @@ def setup_dependent_environment(self, spack_env, run_env, dspec):
spack_cc # Ensure spack module-scope variable is avaiable
spack_env.set('from_cmake', 'from_cmake')
def setup_dependent_package(self, module, dspec):
spack_cc # Ensure spack module-scope variable is avaiable
......@@ -57,7 +56,6 @@ def setup_dependent_package(self, module, dspec):
self.spec.link_arg = "test link arg"
def install(self, spec, prefix):
mkdirp(prefix.bin)
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class DirectMpich(Package):
homepage = "http://www.example.com"
url = "http://www.example.com/direct_mpich-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Dyninst(Package):
homepage = "https://paradyn.org"
url = "http://www.paradyn.org/release8.1/DyninstAPI-8.1.1.tgz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class E(Package):
"""Simple package with no dependencies"""
......
......@@ -25,6 +25,7 @@
##############################################################################
from spack import *
class Externalmodule(Package):
homepage = "http://somewhere.com"
url = "http://somewhere.com/module-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Externalprereq(Package):
homepage = "http://somewhere.com"
url = "http://somewhere.com/prereq-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Externaltest(Package):
homepage = "http://somewhere.com"
url = "http://somewhere.com/test-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Externaltool(Package):
homepage = "http://somewhere.com"
url = "http://somewhere.com/tool-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Externalvirtual(Package):
homepage = "http://somewhere.com"
url = "http://somewhere.com/stuff-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Fake(Package):
homepage = "http://www.fake-spack-example.org"
url = "http://www.fake-spack-example.org/downloads/fake-1.0.tar.gz"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class GitTest(Package):
"""Mock package that uses git for fetching."""
homepage = "http://www.git-fetch-example.com"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class HgTest(Package):
"""Test package that does fetching with mercurial."""
homepage = "http://www.hg-fetch-example.com"
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class Hypre(Package):
"""Hypre is included here as an example of a package that depends on
both LAPACK and BLAS."""
......
......@@ -24,6 +24,7 @@
##############################################################################
from spack import *
class IndirectMpich(Package):
"""Test case for a package that depends on MPI and one of its
dependencies requires a *particular version* of MPI.
......
......@@ -23,11 +23,11 @@
# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
##############################################################################
from spack import *
import os
# Only build certain parts of dwarf because the other ones break.
dwarf_dirs = ['libdwarf', 'dwarfdump2']
class Libdwarf(Package):
homepage = "http://www.prevanders.net/dwarf.html"
url = "http://www.prevanders.net/libdwarf-20130729.tar.gz"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment