def run(self): self._is_running = True try: orig.bdist_wininst.run(self) finally: self._is_running = False