def create_dtf_core():

    replacements = list()

    core_template = 'templates/dtf_core_template.sh'
    core_output = 'included/dtf_core.sh'

    if isfile(core_output):
        print "dtf_core.sh output is already generated, skipping"
        return 0

    replacements.append(('__VERSION__', constants.VERSION))
    replacements.append(('__INCLUDED__', get_pydtf_dir() + '/included'))

    if do_replace(core_template, core_output, replacements) != 0:

        print "Unable to perform updates to dtf_core.sh file!"
        return -1

    return 0
Compute files external to Ganeti which need to be consistent.
dataset/ETHPy150Open jakev/dtf/setup.py/create_dtf_core--crossover with--dataset/ETHPy150Open ganeti/ganeti/lib/cmdlib/common.py/ComputeAncillaryFiles