예제 #1
0
파일: test_dist.py 프로젝트: hanwei2008/ENV
    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)
예제 #2
0
    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)