--- a/install.py Tue Dec 18 15:14:28 2018 +0100 +++ b/install.py Tue Dec 18 16:54:43 2018 +0100 @@ -1938,6 +1938,13 @@ infoName = "" installFromSource = not os.path.isdir(sourceDir) + + # cleanup source if installing from source + if installFromSource: + print("Cleaning up source ...") + cleanupSource(sourceDir) + print() + if installFromSource: sourceDir = os.path.dirname(__file__) or "." configName = os.path.join(sourceDir, "eric6config.py") @@ -1963,12 +1970,6 @@ except EnvironmentError: pass - # cleanup source if installing from source - if installFromSource: - print("Cleaning up source ...") - cleanupSource(sourceDir) - print() - # cleanup old installation print("Cleaning up old installation ...") try: