summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKelly (KT) Thompson <kgt@lanl.gov>2016-05-11 16:32:49 -0600
committerKelly (KT) Thompson <kgt@lanl.gov>2016-05-11 16:33:57 -0600
commitc5a19b57f7965f24413e789924086cf4bcb126d8 (patch)
treea25a71ced93dc7acfdc645f25db10dea6233a9f3
parent8bec127a1d8b2be4403daddfcc31a1eb4a75cb8f (diff)
downloadspack-c5a19b57f7965f24413e789924086cf4bcb126d8.tar.gz
spack-c5a19b57f7965f24413e789924086cf4bcb126d8.tar.bz2
spack-c5a19b57f7965f24413e789924086cf4bcb126d8.tar.xz
spack-c5a19b57f7965f24413e789924086cf4bcb126d8.zip
Clean up formatting.
-rw-r--r--var/spack/repos/builtin/packages/moab/package.py11
-rw-r--r--var/spack/repos/builtin/packages/py-flake8/package.py16
2 files changed, 21 insertions, 6 deletions
diff --git a/var/spack/repos/builtin/packages/moab/package.py b/var/spack/repos/builtin/packages/moab/package.py
index 6bd7e5afdf..5fa9e8e746 100644
--- a/var/spack/repos/builtin/packages/moab/package.py
+++ b/var/spack/repos/builtin/packages/moab/package.py
@@ -51,14 +51,13 @@ class Moab(Package):
'--without-vtk',
'CXX=%s' % spec['mpi'].mpicxx,
'CC=%s' % spec['mpi'].mpicc,
- 'FC=%s' % spec['mpi'].mpifc
- ]
+ 'FC=%s' % spec['mpi'].mpifc]
if '+shared' in spec:
- options.append( '--enable-shared' )
+ options.append('--enable-shared')
if '+netcdf' in spec:
- options.append( '--with-netcdf=%s' % spec['netcdf'].prefix )
+ options.append('--with-netcdf=%s' % spec['netcdf'].prefix)
- configure( *options )
+ configure(*options)
make()
- make( "install" )
+ make('install')
diff --git a/var/spack/repos/builtin/packages/py-flake8/package.py b/var/spack/repos/builtin/packages/py-flake8/package.py
new file mode 100644
index 0000000000..e7a1665bdd
--- /dev/null
+++ b/var/spack/repos/builtin/packages/py-flake8/package.py
@@ -0,0 +1,16 @@
+from spack import *
+
+
+class PyFlake8(Package):
+ """Flake8 is a wrapper around PyFlakes, pep8 and Ned Batchelder's
+ McCabe script."""
+ homepage = "http://flake8.readthedocs.io/en/latest/"
+ url = "https://pypi.python.org/packages/source/f/flake8/flake8-2.5.4.tar.gz"
+
+ version('2.5.4', 'a4585b3569b95c3f66acb8294a7f06ef')
+
+ extends('python')
+ depends_on('py-setuptools')
+
+ def install(self, spec, prefix):
+ python('setup.py', 'install', '--prefix=%s' % prefix)