Clean up formatting.
This commit is contained in:
parent
8bec127a1d
commit
c5a19b57f7
@ -51,14 +51,13 @@ def install(self, spec, prefix):
|
|||||||
'--without-vtk',
|
'--without-vtk',
|
||||||
'CXX=%s' % spec['mpi'].mpicxx,
|
'CXX=%s' % spec['mpi'].mpicxx,
|
||||||
'CC=%s' % spec['mpi'].mpicc,
|
'CC=%s' % spec['mpi'].mpicc,
|
||||||
'FC=%s' % spec['mpi'].mpifc
|
'FC=%s' % spec['mpi'].mpifc]
|
||||||
]
|
|
||||||
|
|
||||||
if '+shared' in spec:
|
if '+shared' in spec:
|
||||||
options.append( '--enable-shared' )
|
options.append('--enable-shared')
|
||||||
if '+netcdf' in spec:
|
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()
|
||||||
make( "install" )
|
make('install')
|
||||||
|
16
var/spack/repos/builtin/packages/py-flake8/package.py
Normal file
16
var/spack/repos/builtin/packages/py-flake8/package.py
Normal 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)
|
Loading…
Reference in New Issue
Block a user