from askapdev.rbuild.builders import Scons as Builder b = Builder(".") b.build()
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()
# @file # build script for AutoBuild from askapdev.rbuild.builders import Scons as Builder b = Builder(".") b.build()
# @file # Package build script. from askapdev.rbuild.builders import Scons as AccessorBuilder accessor = AccessorBuilder(".") accessor.build()
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()
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()
from askapdev.rbuild.builders import Scons as Builder builder = Builder() builder.remote_archive = "cmdlineparser-0.1.1.tar.bz2" builder.build()
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()
def _build(self): for fn in ['measdata', 'testdataset']: run("tar -xjf %s.tar.bz2" % fn) Builder._build(self)
def _clean(self): self.add_extra_clean_targets('data') self.add_extra_clean_targets('testdataset.ms') Builder._clean(self)