diff options
author | Todd Gamblin <tgamblin@llnl.gov> | 2015-12-31 15:46:52 -0800 |
---|---|---|
committer | Todd Gamblin <tgamblin@llnl.gov> | 2015-12-31 15:46:52 -0800 |
commit | 3c64c18bfc3ff561bce425ef9e40ba1c131f0c97 (patch) | |
tree | bd65a498ad8c5a39522aa7b1b83c5dd7e89a9298 /var | |
parent | 48ebb25c25b9d252f4197066b00a7f2e1332a080 (diff) | |
parent | 51f546fe92e46b9737ecf779d2f30787105c95ff (diff) | |
download | spack-3c64c18bfc3ff561bce425ef9e40ba1c131f0c97.tar.gz spack-3c64c18bfc3ff561bce425ef9e40ba1c131f0c97.tar.bz2 spack-3c64c18bfc3ff561bce425ef9e40ba1c131f0c97.tar.xz spack-3c64c18bfc3ff561bce425ef9e40ba1c131f0c97.zip |
Merge pull request #274 from eschnett/eschnett/julia
Add package for Julia
Diffstat (limited to 'var')
-rw-r--r-- | var/spack/packages/julia/package.py | 66 |
1 files changed, 66 insertions, 0 deletions
diff --git a/var/spack/packages/julia/package.py b/var/spack/packages/julia/package.py new file mode 100644 index 0000000000..9fd946c905 --- /dev/null +++ b/var/spack/packages/julia/package.py @@ -0,0 +1,66 @@ +from spack import * +import os + +class Julia(Package): + """The Julia Language: A fresh approach to technical computing""" + homepage = "http://julialang.org" + url = "http://github.com/JuliaLang/julia/releases/download/v0.4.2/julia-0.4.2.tar.gz" + + version('0.4.2', 'ccfeb4f4090c8b31083f5e1ccb03eb06') + + # Build-time dependencies + # depends_on("cmake") + # depends_on("awk") + # depends_on("m4") + # depends_on("pkg-config") + + # I think that Julia requires the dependencies above, but it builds find (on + # my system) without these. We should enable them as necessary. + + # Run-time dependencies + # depends_on("arpack") + # depends_on("fftw +float") + # depends_on("gmp") + # depends_on("mpfr") + # depends_on("pcre2") + + # ARPACK: Requires BLAS and LAPACK; needs to use the same version as Julia. + + # BLAS and LAPACK: Julia prefers 64-bit versions on 64-bit systems. OpenBLAS + # has an option for this; make it available as variant. + + # FFTW: Something doesn't work when using a pre-installed FFTW library; need + # to investigate. + + # GMP, MPFR: Something doesn't work when using a pre-installed FFTW library; + # need to investigate. + + # LLVM: Julia works only with specific versions, and might require patches. + # Thus we let Julia install its own LLVM. + + # Other possible dependencies: + # USE_SYSTEM_OPENLIBM=0 + # USE_SYSTEM_OPENSPECFUN=0 + # USE_SYSTEM_DSFMT=0 + # USE_SYSTEM_SUITESPARSE=0 + # USE_SYSTEM_UTF8PROC=0 + # USE_SYSTEM_LIBGIT2=0 + + def install(self, spec, prefix): + # Explicitly setting CC, CXX, or FC breaks building libuv, one of + # Julia's dependencies. This might be a Darwin-specific problem. Given + # how Spack sets up compilers, Julia should still use Spack's compilers, + # even if we don't specify them explicitly. + options = [#"CC=cc", + #"CXX=c++", + #"FC=fc", + #"USE_SYSTEM_ARPACK=1", + #"USE_SYSTEM_FFTW=1", + #"USE_SYSTEM_GMP=1", + #"USE_SYSTEM_MPFR=1", + #TODO "USE_SYSTEM_PCRE=1", + "prefix=%s" % prefix] + with open('Make.user', 'w') as f: + f.write('\n'.join(options) + '\n') + make() + make("install") |