예제 #1
0
파일: misc.py 프로젝트: Web5design/Bento
def create_simple_build_manifest_args(top_node):
    files = ["scripts/foo.py", "scripts/bar.py"]
    srcdir = "source"

    nodes = [top_node.make_node(os.path.join(srcdir, f)) for f in files]
    for n in nodes:
        n.parent.mkdir()
        n.write("")
    section = InstalledSection.from_source_target_directories("pythonfiles",
                    "section1", os.path.join("$_srcrootdir", srcdir), "$prefix/target", files)
    sections = {"pythonfiles": {"section1": section}}

    meta = build_manifest_meta_from_pkg(SPHINX_META_PKG)
    return meta, sections, nodes
예제 #2
0
def create_simple_build_manifest_args(top_node):
    files = ["scripts/foo.py", "scripts/bar.py"]
    srcdir = "source"

    nodes = [top_node.make_node(os.path.join(srcdir, f)) for f in files]
    for n in nodes:
        n.parent.mkdir()
        n.write("")
    section = InstalledSection.from_source_target_directories(
        "pythonfiles", "section1", os.path.join("$_srcrootdir", srcdir),
        "$prefix/target", files)
    sections = {"pythonfiles": {"section1": section}}

    meta = build_manifest_meta_from_pkg(SPHINX_META_PKG)
    return meta, sections, nodes
예제 #3
0
파일: build.py 프로젝트: B-Rich/Bento
 def store(self, filename, pkg):
     meta = build_manifest_meta_from_pkg(pkg)
     p = BuildManifest(self.sections, meta, pkg.executables)
     if not op.exists(op.dirname(filename)):
         os.makedirs(op.dirname(filename))
     p.write(filename)
예제 #4
0
파일: build.py 프로젝트: marchon/Bento
 def store(self, filename, pkg):
     meta = build_manifest_meta_from_pkg(pkg)
     p = BuildManifest(self.sections, meta, pkg.executables)
     if not op.exists(op.dirname(filename)):
         os.makedirs(op.dirname(filename))
     p.write(filename)