Mercurial > libervia-backend
comparison setup.py @ 1107:8e15eeb3cfc3
setup: cleaning also handles egg filenames not containing the python version
author | souliane <souliane@mailoo.org> |
---|---|
date | Wed, 13 Aug 2014 18:39:46 +0200 |
parents | 2be46f391cfa |
children | b56374a1f6d6 |
comparison
equal
deleted
inserted
replaced
1106:e2e1e27a3680 | 1107:8e15eeb3cfc3 |
---|---|
126 """ | 126 """ |
127 if message is None: | 127 if message is None: |
128 message = "Cleaning previous installation directories" | 128 message = "Cleaning previous installation directories" |
129 if to_remove is None: | 129 if to_remove is None: |
130 to_remove = [] | 130 to_remove = [] |
131 to_remove.extend([os.path.join(self.install_lib, NAME), | 131 for path in [os.path.join(self.install_lib, NAME), |
132 os.path.join(self.install_data, 'share', 'doc', NAME), | 132 os.path.join(self.install_data, 'share', 'doc', NAME), |
133 os.path.join(self.install_lib, "%s-py%s.egg-info" % (self.config_vars['dist_fullname'], self.config_vars['py_version_short'])), | 133 os.path.join(self.install_lib, "%s.egg-info" % self.config_vars['dist_fullname']), |
134 ]) | 134 os.path.join(self.install_lib, "%s-py%s.egg-info" % (self.config_vars['dist_fullname'], self.config_vars['py_version_short'])), |
135 ]: | |
136 if os.path.isdir(path): | |
137 to_remove.append(path) | |
135 for source, dest in self.sh_script_links: | 138 for source, dest in self.sh_script_links: |
136 if os.path.islink(dest): | 139 if os.path.islink(dest): |
137 to_remove.append(dest) | 140 to_remove.append(dest) |
138 | 141 |
139 for script in ('jp', 'wix', 'primitivus'): | 142 for script in ('jp', 'wix', 'primitivus'): |