Clean up formatting.

This commit is contained in:
Kelly (KT) Thompson 2016-05-11 16:32:49 -06:00
parent 8bec127a1d
commit c5a19b57f7
2 changed files with 21 additions and 6 deletions

View file

@ -51,14 +51,13 @@ def install(self, spec, prefix):
'--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')

View file

@ -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)