Add comments to package file
This commit is contained in:
parent
309877088d
commit
51f546fe92
1 changed files with 28 additions and 17 deletions
|
@ -1,4 +1,5 @@
|
||||||
from spack import *
|
from spack import *
|
||||||
|
import os
|
||||||
|
|
||||||
class Julia(Package):
|
class Julia(Package):
|
||||||
"""The Julia Language: A fresh approach to technical computing"""
|
"""The Julia Language: A fresh approach to technical computing"""
|
||||||
|
@ -13,19 +14,27 @@ class Julia(Package):
|
||||||
# depends_on("m4")
|
# depends_on("m4")
|
||||||
# depends_on("pkg-config")
|
# 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
|
# Run-time dependencies
|
||||||
#TODO depends_on("arpack")
|
# depends_on("arpack")
|
||||||
#TODO depends_on("fftw")
|
# depends_on("fftw +float")
|
||||||
#TODO depends_on("git")
|
# depends_on("gmp")
|
||||||
#TODO depends_on("gmp")
|
# depends_on("mpfr")
|
||||||
# depends_on("libedit")
|
# depends_on("pcre2")
|
||||||
#TODO depends_on("mpfr")
|
|
||||||
#TODO depends_on("pcre2")
|
# ARPACK: Requires BLAS and LAPACK; needs to use the same version as Julia.
|
||||||
# depends_on("zlib")
|
|
||||||
|
|
||||||
# BLAS and LAPACK: Julia prefers 64-bit versions on 64-bit systems. OpenBLAS
|
# BLAS and LAPACK: Julia prefers 64-bit versions on 64-bit systems. OpenBLAS
|
||||||
# has an option for this; make it available as variant.
|
# 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.
|
# LLVM: Julia works only with specific versions, and might require patches.
|
||||||
# Thus we let Julia install its own LLVM.
|
# Thus we let Julia install its own LLVM.
|
||||||
|
|
||||||
|
@ -38,18 +47,20 @@ class Julia(Package):
|
||||||
# USE_SYSTEM_LIBGIT2=0
|
# USE_SYSTEM_LIBGIT2=0
|
||||||
|
|
||||||
def install(self, spec, prefix):
|
def install(self, spec, prefix):
|
||||||
options = ["CC=cc",
|
# Explicitly setting CC, CXX, or FC breaks building libuv, one of
|
||||||
"CXX=c++",
|
# Julia's dependencies. This might be a Darwin-specific problem. Given
|
||||||
"FC=fc",
|
# how Spack sets up compilers, Julia should still use Spack's compilers,
|
||||||
#TODO "USE_SYSTEM_ARPACK=1",
|
# even if we don't specify them explicitly.
|
||||||
#TODO "USE_SYSTEM_FFTW=1",
|
options = [#"CC=cc",
|
||||||
#TODO "USE_SYSTEM_GMP=1",
|
#"CXX=c++",
|
||||||
#TODO "USE_SYSTEM_MPFR=1",
|
#"FC=fc",
|
||||||
|
#"USE_SYSTEM_ARPACK=1",
|
||||||
|
#"USE_SYSTEM_FFTW=1",
|
||||||
|
#"USE_SYSTEM_GMP=1",
|
||||||
|
#"USE_SYSTEM_MPFR=1",
|
||||||
#TODO "USE_SYSTEM_PCRE=1",
|
#TODO "USE_SYSTEM_PCRE=1",
|
||||||
"prefix=%s" % prefix]
|
"prefix=%s" % prefix]
|
||||||
with open('Make.user', 'w') as f:
|
with open('Make.user', 'w') as f:
|
||||||
f.write('\n'.join(options) + '\n')
|
f.write('\n'.join(options) + '\n')
|
||||||
which('env')()
|
|
||||||
which('env')('which', 'cc')
|
|
||||||
make()
|
make()
|
||||||
make("install")
|
make("install")
|
||||||
|
|
Loading…
Reference in a new issue