Ejemplo n.º 1
0
from askapdev.rbuild.builders import Scons as Builder

b = Builder(".")
b.build()
Ejemplo n.º 2
0
from askapdev.rbuild.builders import Scons as Builder

builder = Builder(pkgname="BLAS", archivename="blas")
builder.remote_archive = "blas.tgz"
builder.add_file("files/SConstruct")

builder.build()
Ejemplo n.º 3
0
# @file
# build script for AutoBuild
from askapdev.rbuild.builders import Scons as Builder

b = Builder(".")
b.build()

Ejemplo n.º 4
0
# @file
# Package build script.

from askapdev.rbuild.builders import Scons as AccessorBuilder

accessor = AccessorBuilder(".")
accessor.build()
Ejemplo n.º 5
0
import os
from askapdev.rbuild.builders import Scons as Builder

# This directory is expected by the build system
if not os.path.exists("icegenerated"):
    os.makedirs("icegenerated")

b = Builder(".")
b.build()

# See Issue #2462 as to why we need to run the builder twice.
# build() method in Code removes the install directory so need
# to set the do_clean flag to False - See Issue #3307.
b.do_clean = False
b.build()
Ejemplo n.º 6
0
from askapdev.rbuild.builders import Scons as Builder

b = Builder(".")
b.build()

# See Issue #2462 as to why we need to run the builder twice.
# build() method in Code removes the install directory so need
# to set the do_clean flag to False - See Issue #3307.
b.do_clean=False
b.build()
Ejemplo n.º 7
0
from askapdev.rbuild.builders import Scons as Builder

builder = Builder()
builder.remote_archive = "cmdlineparser-0.1.1.tar.bz2"
builder.build()
Ejemplo n.º 8
0
import subprocess
from askapdev.rbuild.builders import Builder as _B
from askapdev.rbuild.builders import Scons as Builder

#introspect numpy for include dir...
b = _B()
env = b._get_env()
p = subprocess.Popen(
    "{0} python -c 'import numpy; print numpy.get_include()'".format(env),
    stdout=subprocess.PIPE,
    shell=True)
numpy = p.communicate()[0].strip()

builder = Builder()
builder.remote_archive = "pyrap-0.3.1.tar.bz2"

casacore = builder.dep.get_install_path("casacore")
bpython = builder.dep.get_install_path("boost")

builder.add_option("--casacore-root=%s" % casacore)
builder.add_option("--numpy-incdir=%s" % numpy)
builder.add_option("--boost-root=%s" % bpython)
# scons builder uses prefix=, this package uses --prefix=
builder.add_option("--prefix=%s" % builder._prefix)
builder.nowarnings = True
builder.build()
Ejemplo n.º 9
0
 def _build(self):
     for fn in ['measdata', 'testdataset']:
         run("tar -xjf %s.tar.bz2" % fn)
     Builder._build(self)
Ejemplo n.º 10
0
 def _clean(self):
     self.add_extra_clean_targets('data')
     self.add_extra_clean_targets('testdataset.ms')
     Builder._clean(self)