scripts/install-debugclients.py

branch
eric7
changeset 8314
e3642a6a1e71
parent 8260
2161475d9639
child 8501
7b5f10581c35
--- a/scripts/install-debugclients.py	Sat May 15 19:01:16 2021 +0200
+++ b/scripts/install-debugclients.py	Sat May 15 20:08:03 2021 +0200
@@ -26,11 +26,11 @@
 modDir = None
 pyModDir = None
 distDir = None
-installPackage = "eric6DebugClients"
+installPackage = "eric7DebugClients"
 doCleanup = True
 doCompile = True
 sourceDir = "eric"
-eric6SourceDir = os.path.join(sourceDir, "eric6")
+eric7SourceDir = os.path.join(sourceDir, "eric7")
 
 
 def exit(rcode=0):
@@ -212,10 +212,10 @@
         # Install the files
         # copy the various parts of eric debug clients
         copyTree(
-            os.path.join(eric6SourceDir, "DebugClients"), targetDir,
+            os.path.join(eric7SourceDir, "DebugClients"), targetDir,
             ['*.py', '*.pyc', '*.pyo', '*.pyw'],
             [os.path.join(sourceDir, ".ropeproject")],
-            excludePatterns=["eric6config.py*"])
+            excludePatterns=["eric7config.py*"])
         
         # copy the license file
         shutilCopy(os.path.join(sourceDir, "docs", "LICENSE.GPL3"), targetDir)
@@ -281,12 +281,12 @@
     installFromSource = not os.path.isdir(sourceDir)
     if installFromSource:
         sourceDir = os.path.abspath("..")
-        eric6SourceDir = os.path.join(sourceDir, "eric6")
+        eric7SourceDir = os.path.join(sourceDir, "eric7")
     
     # cleanup source if installing from source
     if installFromSource:
         print("Cleaning up source ...")
-        cleanupSource(os.path.join(eric6SourceDir, "DebugClients"))
+        cleanupSource(os.path.join(eric7SourceDir, "DebugClients"))
         print()
     
     # cleanup old installation
@@ -307,13 +307,13 @@
         sys.stdout = io.StringIO()
         if distDir:
             compileall.compile_dir(
-                os.path.join(eric6SourceDir, "DebugClients"),
+                os.path.join(eric7SourceDir, "DebugClients"),
                 ddir=os.path.join(distDir, modDir, installPackage),
                 rx=skipRe,
                 quiet=True)
         else:
             compileall.compile_dir(
-                os.path.join(eric6SourceDir, "DebugClients"),
+                os.path.join(eric7SourceDir, "DebugClients"),
                 ddir=os.path.join(modDir, installPackage),
                 rx=skipRe,
                 quiet=True)

eric ide

mercurial