You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This repo is archived. You can view files and clone it, but cannot push or open issues/pull-requests.
waf_old/playground/R/wscript

30 lines
806 B
Python

#! /usr/bin/env python
# encoding: utf-8
VERSION = '1.0.0'
APPNAME = 'testR'
top = '.'
out = 'build'
def configure(ctx):
ctx.find_program('texi2dvi')
ctx.load('R')
def build(ctx):
ctx(
rule = '${R} CMD BATCH ${tsk.generator.ropts} ${tsk.generator.fopt % tsk.inputs[1].abspath()} -- ${SRC[0].abspath()} foo.log',
source = 'src/test.R src/testSweave.Rnw',
target = 'src/testSweave.pdf',
cwd = ctx.path.find_node('src').get_bld().abspath(),
install_path = '${PREFIX}/share',
shell = False,
ropts = '--no-restore --no-save --no-readline --numTrees=1000',
fopt = '--ffff=%s'
)
def dist(ctx):
ctx.algo = 'zip'
ctx.excl = ' **/waf-* **/.waf-* **/*~ **/*.orig **/*.pyc **/*.pyo **/*.bak **/.lock-w* **/*.log **/*.lot **/*.lof **/*.lst **/*.aux **/*.bbl **/*.blg **/*.out **/*.toc'