Exemplo n.º 1
0
    def get_build_scripts_cmd(self, target, scripts):
        import sys

        dist = Distribution()
        dist.scripts = scripts
        dist.command_obj["build"] = support.DummyCommand(build_scripts=target, force=1, executable=sys.executable)
        return build_scripts(dist)
 def get_build_scripts_cmd(self, target, scripts):
     import sys
     dist = Distribution()
     dist.scripts = scripts
     dist.command_obj["build"] = support.DummyCommand(
         build_scripts=target, force=1, executable=sys.executable)
     return build_scripts(dist)
Exemplo n.º 3
0
 def mkbld(self, thedir):
     b = build_scripts(self.distribution)
     b.build_dir = self.build_dir + thedir
     b.scripts = []
     b.force = self.force
     b.executable = self.executable
     b.outfiles = None
     return b
Exemplo n.º 4
0
	def mkbld(self,thedir):
		b = build_scripts(self.distribution)
		b.build_dir = self.build_dir+thedir
		b.scripts = []
		b.force = self.force
		b.executable = self.executable
		b.outfiles = None
		return b
Exemplo n.º 5
0
Arquivo: build.py Projeto: dagss/Bento
def build_dir():
    # FIXME: handle build directory differently, wo depending on distutils
    from distutils.command.build_scripts import build_scripts
    from distutils.dist import Distribution

    dist = Distribution()

    bld_scripts = build_scripts(dist)
    bld_scripts.initialize_options()
    bld_scripts.finalize_options()
    return bld_scripts.build_dir