diff --git a/setup/install.py b/setup/install.py index 20a484bf6f..56546cd7d4 100644 --- a/setup/install.py +++ b/setup/install.py @@ -191,6 +191,8 @@ class Develop(Command): if not os.path.exists(self.staging_bindir): os.makedirs(self.staging_bindir) self.info('Installing binary:', path) + if os.path.lexists(path) and not os.path.exists(path): + os.remove(path) open(path, 'wb').write(script) os.chmod(path, self.MODE) self.manifest.append(path)