Exemple #1
0
def replace_templates(env):
    dist = _get_distribution()
    comm_vars = get_common_variables(dist)

    build_task = env.get_task('build')
    build = build_task.command_class(build_task.distribution)
    build.set_undefined_options('build', ('build_lib', 'build_lib'))

    comm_vars['build_lib'] = build.build_lib

    replace_template_files(
        root_directory=os.curdir,
        variables=comm_vars,
        subdirs=getattr(options, "template_files_directories", None)
    )
Exemple #2
0
def rename_template_files():
    _rename_template_files(root_directory=os.curdir, variables=get_common_variables(_get_distribution()))