def getBuildScriptsCmd(self, target, scripts):
        dist = Distribution()
        dist.scripts = scripts
        dist.command_obj["build"] = DummyCommand(
            build_scripts = target.path,
            force = 1,
            executable = sys.executable
        )
        return build_scripts_twisted(dist)
Create a distutils L{Distribution} with a L{DummyCommand} and wrap it
dataset/ETHPy150Open twisted/twisted/twisted/python/test/test_dist.py/BuildScriptsTests.getBuildScriptsCmd