def getBuildScriptsCmd(self, target, scripts): """ Create a distutils L{Distribution} with a L{DummyCommand} and wrap it in L{build_scripts_twisted}. @type target: L{FilePath} """ dist = Distribution() dist.scripts = scripts dist.command_obj["build"] = DummyCommand(build_scripts=target.path, force=1, executable=sys.executable) return build_scripts_twisted(dist)