
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
452 B
Python
16 lines
452 B
Python
from spack import *
|
|
|
|
class PyLibxml2(Package):
|
|
"""A Python wrapper around libxml2."""
|
|
homepage = "https://xmlsoft.org/python.html"
|
|
url = "ftp://xmlsoft.org/libxml2/python/libxml2-python-2.6.21.tar.gz"
|
|
|
|
version('2.6.21', '229dd2b3d110a77defeeaa73af83f7f3')
|
|
|
|
extends('python')
|
|
depends_on('libxml2')
|
|
depends_on('libxslt')
|
|
|
|
def install(self, spec, prefix):
|
|
python('setup.py', 'install', '--prefix=%s' % prefix)
|