コード例 #1
0
 def build(self, msys):
     if self.path is not None:
         msys.environ['BDWD'] = msys.windows_to_msys(self.path)
         return_code = msys.run_shell_script(self.shell_script)
         if return_code != 0:
             raise BuildError("The build for %s failed with code %d" %
                              (self.name, return_code))
     else:
         raise BuildError("No source directory for %s" % self.name)
コード例 #2
0
 def build(self, msys):
     if self.path is not None:
         msys.environ['BDWD'] = msys.windows_to_msys(self.path)
         return_code = msys.run_shell_script(self.shell_script)
         if return_code != 0:
             raise BuildError("The build for %s failed with code %d" %
                              (self.name, return_code))
     else:
         raise BuildError("No source directory for %s" % self.name)
コード例 #3
0
 def build(self, msys):
     if self.path is not None:
         env_home = msys.environ.get('HOME', None)
         msys.environ['HOME'] = self.path
         try:
             return_code = msys.run_shell_script(self.shell_script)
         finally:
             if env_home is not None:
                 msys.environ['HOME'] = env_home
             else:
                 del msys.environ['HOME']
         if return_code != 0:
             raise BuildError("The build for %s failed with code %d" %
                              (self.name, return_code))
     else:
         raise BuildError("No source directory for %s" % self.name)
コード例 #4
0
 def build(self, msys):
     return_code = msys.run_shell_script(self.shell_script)
     if return_code != 0:
         raise BuildError("Preparation '%s' failed with code %d" %
                          (self.name, return_code))
コード例 #5
0
 def build(self, msys):
     return_code = msys.run_shell_script(self.shell_script)
     if return_code != 0:
         raise BuildError("The build for %s failed with code %d" %
                          (self.name, return_code))
コード例 #6
0
 def build(self, msys):
     return_code = msys.run_shell_script(self.shell_script)
     if return_code != 0:
         raise BuildError("Preparation '%s' failed with code %d" %
                          (self.name, return_code))
コード例 #7
0
 def build(self, msys):
     return_code = msys.run_shell_script(self.shell_script)
     if return_code != 0:
         raise BuildError("The build for %s failed with code %d" %
                          (self.name, return_code))