
Package repositories now look like this: top-level-dir/ repo.yaml packages/ libelf/ package.py mpich/ package.py ... This leaves room at the top level for additional metadata, source, per-repo configs, indexes, etc., and it makes it easy to see that something is a spack repo (just look for repo.yaml and packages).
16 lines
461 B
Python
16 lines
461 B
Python
from spack import *
|
|
|
|
class PyYapf(Package):
|
|
""" Yet Another Python Formatter """
|
|
homepage = "https://github.com/google/yapf"
|
|
# base https://pypi.python.org/pypi/cffi
|
|
url = "https://github.com/google/yapf/archive/v0.2.1.tar.gz"
|
|
|
|
version('0.2.1', '348ccf86cf2057872e4451b204fb914c')
|
|
|
|
extends('python')
|
|
depends_on('py-setuptools')
|
|
|
|
def install(self, spec, prefix):
|
|
python('setup.py', 'install', '--prefix=%s' % prefix)
|