Initial versions of python and libffi.

This commit is contained in:
Todd Gamblin 2014-10-30 15:02:06 -07:00
parent 3db22a4e33
commit 8c8fc749be
2 changed files with 32 additions and 0 deletions

View File

@ -0,0 +1,16 @@
from spack import *
class Libffi(Package):
"""The libffi library provides a portable, high level programming
interface to various calling conventions. This allows a programmer
to call any function specified by a call interface description at
run time."""
homepage = "https://sourceware.org/libffi/"
url = "ftp://sourceware.org/pub/libffi/libffi-3.1.tar.gz"
version('3.1', 'f5898b29bbfd70502831a212d9249d10')
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
make()
make("install")

View File

@ -0,0 +1,16 @@
from spack import *
class Python(Package):
"""The Python programming language."""
homepage = "http://www.python.org"
url = "http://www.python.org/ftp/python/2.7.8/Python-2.7.8.tar.xz"
version('2.7.8', 'd235bdfa75b8396942e360a70487ee00')
depends_on("openssl")
depends_on("sqlite")
def install(self, spec, prefix):
configure("--prefix=%s" % prefix)
make()
make("install")