install.py

changeset 6638
df711aa509d3
parent 6637
54a92e8dca00
child 6640
b7e8d080989e
--- 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:

eric ide

mercurial