From 314ecc54fe9040ba1d469e2c7909e513ec71da34 Mon Sep 17 00:00:00 2001 From: Alfredo Gimenez Date: Thu, 18 Jun 2015 17:29:16 -0700 Subject: Thrift python support --- var/spack/packages/thrift/package.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/var/spack/packages/thrift/package.py b/var/spack/packages/thrift/package.py index afde181ed9..eee4a4cd62 100644 --- a/var/spack/packages/thrift/package.py +++ b/var/spack/packages/thrift/package.py @@ -1,3 +1,4 @@ +from os import environ from spack import * class Thrift(Package): @@ -12,6 +13,8 @@ class Thrift(Package): version('0.9.2', '89f63cc4d0100912f4a1f8a9dee63678') + extends("python") + depends_on("autoconf") depends_on("automake") depends_on("bison") @@ -20,15 +23,17 @@ class Thrift(Package): depends_on("jdk") depends_on("libtool") depends_on("openssl") + depends_on("python") # Compilation fails for most languages, fortunately cpp installs fine # All other languages (yes, including C) are omitted until someone needs them def install(self, spec, prefix): + environ["PY_PREFIX"] = prefix configure("--prefix=%s" % prefix, "--with-boost=%s" % spec['boost'].prefix, "--with-c=no", "--with-go=no", - "--with-python=no", + "--with-python=yes", "--with-lua=no", "--with-php=no", "--with-qt4=no", -- cgit v1.2.3-70-g09d2 From a51d4afe3ecb1eb32dad65384718255273500f3c Mon Sep 17 00:00:00 2001 From: Todd Gamblin Date: Sat, 20 Jun 2015 20:25:12 -0700 Subject: Minor simplification (os.environ -> env) --- var/spack/packages/thrift/package.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/var/spack/packages/thrift/package.py b/var/spack/packages/thrift/package.py index eee4a4cd62..0e15052f64 100644 --- a/var/spack/packages/thrift/package.py +++ b/var/spack/packages/thrift/package.py @@ -1,10 +1,9 @@ -from os import environ from spack import * class Thrift(Package): - """The Apache Thrift software framework, for scalable cross-language services - development, combines a software stack with a code generation engine to build - services that work efficiently and seamlessly between C++, Java, Python, PHP, + """The Apache Thrift software framework, for scalable cross-language services + development, combines a software stack with a code generation engine to build + services that work efficiently and seamlessly between C++, Java, Python, PHP, Ruby, Erlang, Perl, Haskell, C#, Cocoa, JavaScript, Node.js, Smalltalk, OCaml and Delphi and other languages.""" @@ -28,7 +27,9 @@ class Thrift(Package): # Compilation fails for most languages, fortunately cpp installs fine # All other languages (yes, including C) are omitted until someone needs them def install(self, spec, prefix): - environ["PY_PREFIX"] = prefix + env["PY_PREFIX"] = prefix + env["JAVA_PREFIX"] = prefix + configure("--prefix=%s" % prefix, "--with-boost=%s" % spec['boost'].prefix, "--with-c=no", -- cgit v1.2.3-70-g09d2