Exemple #1
0
def makeIncludedDataDirectory(
        source_path,
        dest_path,
        reason,
        tracer,
        tags,
        ignore_dirs=(),
        ignore_filenames=(),
        ignore_suffixes=(),
        only_suffixes=(),
        normalize=True,
):
    assert isRelativePath(dest_path), dest_path
    assert os.path.isdir(source_path), source_path

    return IncludedDataDirectory(
        kind="data_dir",
        source_path=source_path,
        dest_path=dest_path,
        ignore_dirs=ignore_dirs,
        ignore_filenames=ignore_filenames,
        ignore_suffixes=ignore_suffixes,
        only_suffixes=only_suffixes,
        normalize=normalize,
        reason=reason,
        tracer=tracer,
        tags=_decodeTags(tags),
    )
Exemple #2
0
def makeIncludedDataFile(source_path, dest_path, reason):
    assert isRelativePath(dest_path), dest_path

    return IncludedDataFile(
        kind="data_file",
        source_path=source_path,
        dest_path=dest_path,
        data=None,
        reason=reason,
    )
Exemple #3
0
def makeIncludedGeneratedDataFile(data, dest_path, reason):
    assert isRelativePath(dest_path), dest_path

    return IncludedDataFile(
        kind="data_blob",
        source_path=None,
        dest_path=dest_path,
        reason=reason,
        data=data,
    )
Exemple #4
0
def makeDllEntryPoint(source_path, dest_path, package_name):
    assert type(dest_path) not in (tuple, list)
    assert type(source_path) not in (tuple, list)
    assert isRelativePath(dest_path), dest_path

    assert os.path.exists(source_path), source_path

    dest_path = os.path.join(getStandaloneDirectoryPath(), dest_path)

    return makeIncludedEntryPoint("dll",
                                  source_path,
                                  dest_path,
                                  package_name,
                                  executable=False)
Exemple #5
0
def makeIncludedDataDirectory(
        source_path,
        dest_path,
        reason,
        ignore_dirs=(),
        ignore_filenames=(),
        ignore_suffixes=(),
        only_suffixes=(),
        normalize=True,
):
    assert isRelativePath(dest_path), dest_path

    return IncludedDataDirectory(
        kind="data_dir",
        source_path=source_path,
        dest_path=dest_path,
        ignore_dirs=ignore_dirs,
        ignore_filenames=ignore_filenames,
        ignore_suffixes=ignore_suffixes,
        only_suffixes=only_suffixes,
        normalize=normalize,
        reason=reason,
    )