summaryrefslogtreecommitdiff
path: root/var
diff options
context:
space:
mode:
authorTodd Gamblin <tgamblin@llnl.gov>2015-06-20 20:25:12 -0700
committerTodd Gamblin <tgamblin@llnl.gov>2015-06-20 20:25:12 -0700
commita51d4afe3ecb1eb32dad65384718255273500f3c (patch)
treeeedda7fab127a88a2010365539a2b39b2ffca6cd /var
parent314ecc54fe9040ba1d469e2c7909e513ec71da34 (diff)
downloadspack-a51d4afe3ecb1eb32dad65384718255273500f3c.tar.gz
spack-a51d4afe3ecb1eb32dad65384718255273500f3c.tar.bz2
spack-a51d4afe3ecb1eb32dad65384718255273500f3c.tar.xz
spack-a51d4afe3ecb1eb32dad65384718255273500f3c.zip
Minor simplification (os.environ -> env)
Diffstat (limited to 'var')
-rw-r--r--var/spack/packages/thrift/package.py11
1 files 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",