Beispiel #1
0
import os.path

from askapdev.rbuild.builders import CMake as Builder
import askapdev.rbuild.utils as utils

# CMake doesn't know about ROOT_DIR for blas and lapack, so need to
# explicitly name them.  Want to use the dynamic libraries in order
# to avoid link problems with missing FORTRAN symbols.
platform = utils.get_platform()
libblas = "libblas.a"
liblapack = "liblapack.a"
if platform['system'] == 'Darwin':
    libblas = libblas.replace(".so", ".dylib")
    liblapack = liblapack.replace(".so", ".dylib")

builder = Builder("casarest-1.4.2")
builder.remote_archive = "https://github.com/casacore/casarest/archive/v1.4.2.zip"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib = builder.dep.get_install_path("wcslib")
if not platform['system'] == 'Darwin':
    blas = builder.dep.get_install_path("blas")
    lapack = builder.dep.get_install_path("lapack")
fftw3 = builder.dep.get_install_path("fftw3")
casacore = builder.dep.get_install_path("casacore")
boost = builder.dep.get_install_path("boost")

# CMake doesn't know about ROOT_DIR for these packages, so be explicit
if platform['system'] != 'Darwin':
    builder.add_option("-DBLAS_LIBRARIES=%s" %
                       os.path.join(blas, 'lib', libblas))
Beispiel #2
0
import os.path

from askapdev.rbuild.builders import CMake as Builder
import askapdev.rbuild.utils as utils

# CMake doesn't know about ROOT_DIR for blas and lapack, so need to
# explicitly name them.  Want to use the dynamic libraries in order
# to avoid link problems with missing FORTRAN symbols.
platform = utils.get_platform()
builder = Builder()
builder.remote_archive = "https://github.com/casacore/casacore/archive/v2.4.0.zip"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib = builder.dep.get_install_path("wcslib")
fftw3 = builder.dep.get_install_path("fftw3")

# these work
builder.add_option("-DCFITSIO_ROOT_DIR=%s" % cfitsio)
builder.add_option("-DWCSLIB_ROOT_DIR=%s" % wcslib)
# but FFTW3_ROOT_DIR don't for the include part
builder.add_option("-DFFTW3_DISABLE_THREADS=ON")
builder.add_option("-DFFTW3_ROOT_DIR=%s" % fftw3)
builder.add_option("-DFFTW3_INCLUDE_DIRS=%s/include" % fftw3)
builder.add_option("-DUSE_FFTW3=ON")
builder.add_option("-DUSE_THREADS=ON")
# save some time
builder.add_option("-DBUILD_TESTING=OFF")
builder.add_option("-DBUILD_PYTHON=OFF")
builder.nowarnings = True

# Force use of raw GNU compilers. This is due to bug #5798 soon on the Cray XC30.
Beispiel #3
0
import os

from askapdev.rbuild.builders import CMake as Builder
import askapdev.rbuild.utils as utils

platform =  utils.get_platform()
builder = Builder(pkgname="mysql-connector-c-6.1.11-src")
builder.remote_archive = "mysql-connector-c-6.1.11-src.tar.gz"

# Force use of raw GNU compilers. This is due to bug #5798 seen on the Cray XC30
# (Galaxy). Builds using the newer cmake (2.8.12+) fail when cmake uses the Cray
# compiler wrappers
if platform['system'] != 'Darwin':
    builder.add_option("-DCMAKE_C_COMPILER=gcc")
    builder.add_option("-DCMAKE_CXX_COMPILER=g++")

builder.build()

# The MySQL client no longer builds the separate thread-safe libmysqlclient_r.so
# library. There is only a thread-safe library now (named without the _r
# suffix).  However, the ODB libraries still look for the old thread-safe
# name. And that can't be changed without patching the ODB configure script.
# The simplest solution is to create symlinks here.
try:
    lib_path = '{0}/{1}/lib'.format(builder._bdir, builder._installdir)
    source = os.path.join(lib_path, 'libmysqlclient.{0}')
    target = os.path.join(lib_path, 'libmysqlclient_r.{0}')

# symlink the static library
    os.symlink(source.format('a'), target.format('a'))
Beispiel #4
0
import os.path

from askapdev.rbuild.builders import CMake as Builder
import askapdev.rbuild.utils as utils

# CMake doesn't know about ROOT_DIR for blas and lapack, so need to
# explicitly name them.  Want to use the dynamic libraries in order
# to avoid link problems with missing FORTRAN symbols.
platform = utils.get_platform()
libblas = "libblas.so"
liblapack = "liblapack.so"
if platform['system'] == 'Darwin':
    libblas = libblas.replace(".so", ".dylib")
    liblapack = liblapack.replace(".so", ".dylib")

builder = Builder(".")
builder.remote_archive = "casa-components-1.6.0.tar.gz"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib = builder.dep.get_install_path("wcslib")
if not platform['system'] == 'Darwin':
    blas = builder.dep.get_install_path("blas")
    lapack = builder.dep.get_install_path("lapack")
fftw3 = builder.dep.get_install_path("fftw3")
casacore = builder.dep.get_install_path("casacore")

# CMake doesn't know about ROOT_DIR for these packages, so be explicit
if not platform['system'] == 'Darwin':
    builder.add_option("-DBLAS_LIBRARIES=%s" %
                       os.path.join(blas, 'lib', libblas))
    builder.add_option("-DLAPACK_LIBRARIES=%s" %
Beispiel #5
0
import os.path

from askapdev.rbuild.builders import CMake as Builder
import askapdev.rbuild.utils as utils

# CMake doesn't know about ROOT_DIR for blas and lapack, so need to
# explicitly name them.  Want to use the dynamic libraries in order
# to avoid link problems with missing FORTRAN symbols.
platform = utils.get_platform()
builder = Builder()
builder.remote_archive = "casacore-2.0.3.tar.gz"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib = builder.dep.get_install_path("wcslib")
fftw3 = builder.dep.get_install_path("fftw3")
boost = builder.dep.get_install_path("boost")
numpy = builder.dep.get_install_path("numpy")

# these work
builder.add_option("-DCFITSIO_ROOT_DIR=%s" % cfitsio)
builder.add_option("-DWCSLIB_ROOT_DIR=%s" % wcslib)
# but FFTW3_ROOT_DIR don't for the include part
builder.add_option("-DFFTW3_DISABLE_THREADS=ON")
builder.add_option("-DFFTW3_ROOT_DIR=%s" % fftw3)
builder.add_option("-DFFTW3_INCLUDE_DIRS=%s/include" % fftw3)
builder.add_option("-DUSE_FFTW3=ON")
# save some time
builder.add_option("-DBUILD_TESTING=OFF")
builder.nowarnings = True

# python bindings
Beispiel #6
0
import os.path

from askapdev.rbuild.builders import CMake as Builder
import askapdev.rbuild.utils as utils

# CMake doesn't know about ROOT_DIR for blas and lapack, so need to
# explicitly name them.  Want to use the dynamic libraries in order 
# to avoid link problems with missing FORTRAN symbols.
platform =  utils.get_platform()
libblas = "libblas.so"
liblapack = "liblapack.so"
if platform['system'] == 'Darwin':
    libblas = libblas.replace(".so", ".dylib")
    liblapack = liblapack.replace(".so", ".dylib")

builder = Builder()
builder.remote_archive = "casacore-1.6.0a.tar.bz2"

cfitsio = builder.dep.get_install_path("cfitsio")
wcslib  = builder.dep.get_install_path("wcslib")
blas    = builder.dep.get_install_path("blas")
lapack  = builder.dep.get_install_path("lapack")
fftw3   = builder.dep.get_install_path("fftw3")

# CMake doesn't know about ROOT_DIR for these packages, so be explicit
builder.add_option("-DBLAS_LIBRARIES=%s" % os.path.join(blas, 'lib', libblas))
builder.add_option("-DLAPACK_LIBRARIES=%s" % os.path.join(lapack, 'lib', liblapack))
# these work
builder.add_option("-DCFITSIO_ROOT_DIR=%s" % cfitsio)
builder.add_option("-DWCSLIB_ROOT_DIR=%s" % wcslib)
# but FFTW3_ROOT_DIR don't for the include part