New, cleaner package repository structure.
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).
This commit is contained in:
15
var/spack/repos/builtin/packages/py-pycparser/package.py
Normal file
15
var/spack/repos/builtin/packages/py-pycparser/package.py
Normal file
@@ -0,0 +1,15 @@
|
||||
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)
|
Reference in New Issue
Block a user