summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTom Scogland <tscogland@llnl.gov>2015-06-09 09:22:20 -0700
committerThomas R. W. Scogland <scogland@llnl.gov>2015-06-09 19:36:08 -0700
commit8839eeb4213572bbe9424b6982bfe9ad275d7b64 (patch)
tree20c994fff470f94c490a0141f54ad8402a0ef822
parente64c0f4e4e269ed204614d276e83f5ef3f128b2e (diff)
downloadspack-8839eeb4213572bbe9424b6982bfe9ad275d7b64.tar.gz
spack-8839eeb4213572bbe9424b6982bfe9ad275d7b64.tar.bz2
spack-8839eeb4213572bbe9424b6982bfe9ad275d7b64.tar.xz
spack-8839eeb4213572bbe9424b6982bfe9ad275d7b64.zip
new package files for python-cffi and its dependency pycparser
-rw-r--r--var/spack/packages/py-cffi/package.py17
-rw-r--r--var/spack/packages/py-pycparser/package.py15
2 files changed, 32 insertions, 0 deletions
diff --git a/var/spack/packages/py-cffi/package.py b/var/spack/packages/py-cffi/package.py
new file mode 100644
index 0000000000..a4d37483fe
--- /dev/null
+++ b/var/spack/packages/py-cffi/package.py
@@ -0,0 +1,17 @@
+from spack import *
+
+class PyCffi(Package):
+ """Foreign Function Interface for Python calling C code"""
+ homepage = "http://cffi.readthedocs.org/en/latest/"
+ # base https://pypi.python.org/pypi/cffi
+ url = "https://pypi.python.org/packages/source/c/cffi/cffi-1.1.2.tar.gz#md5="
+
+ version('1.1.2', 'ca6e6c45b45caa87aee9adc7c796eaea')
+
+ extends('python')
+ depends_on('py-setuptools')
+ depends_on('py-pycparser')
+ depends_on('libffi')
+
+ def install(self, spec, prefix):
+ python('setup.py', 'install', '--prefix=%s' % prefix)
diff --git a/var/spack/packages/py-pycparser/package.py b/var/spack/packages/py-pycparser/package.py
new file mode 100644
index 0000000000..f2bb679d25
--- /dev/null
+++ b/var/spack/packages/py-pycparser/package.py
@@ -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)