
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
493 B
Python
16 lines
493 B
Python
from spack import *
|
|
|
|
class PyPycparser(Package):
|
|
"""pycparser is a complete parser of the C language, written in pure python"""
|
|
homepage = "https://github.com/eliben/pycparser"
|
|
url = "https://pypi.python.org/packages/source/p/pycparser/pycparser-2.13.tar.gz"
|
|
|
|
version('2.13', 'e4fe1a2d341b22e25da0d22f034ef32f')
|
|
|
|
|
|
extends('python')
|
|
depends_on('py-setuptools')
|
|
|
|
def install(self, spec, prefix):
|
|
python('setup.py', 'install', '--prefix=%s' % prefix)
|