install.py

changeset 107
918a6be6f051
parent 98
869a740ea4ee
child 133
5b6e8eb22796
diff -r 94c7385cf685 -r 918a6be6f051 install.py
--- a/install.py	Sun Feb 07 13:42:06 2010 +0000
+++ b/install.py	Sun Feb 07 14:18:01 2010 +0000
@@ -249,11 +249,11 @@
         if os.path.exists(rwname):
             os.remove(rwname)
     
-    # Cleanup our config file
-    for name in ['eric5config.py', 'eric5config.pyc']:
-        e4cfile = os.path.join(pyModDir, name)
-        if os.path.exists(e4cfile):
-            os.remove(e4cfile)
+    # Cleanup our config file(s)
+    for name in ['eric5config.py', 'eric5config.pyc', 'eric5.pth']:
+        e5cfile = os.path.join(pyModDir, name)
+        if os.path.exists(e5cfile):
+            os.remove(e5cfile)
         
     # Cleanup the install directories
     for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir',
@@ -328,12 +328,6 @@
             if os.path.exists('eric5config.pyc'):
                 shutil.copy('eric5config.pyc', modDir)
         
-        # copy the eric5.pth file
-        if distDir:
-            shutil.copy('eric%seric5.pth' % os.sep, cfg['mdir'])
-        else:
-            shutil.copy('eric%seric5.pth' % os.sep, modDir)
-        
         # copy the various parts of eric5
         copyTree('eric', cfg['ericDir'], ['*.py', '*.pyc', '*.pyo', '*.pyw'], 
             ['eric%sExamples' % os.sep])

eric ide

mercurial