install.py

changeset 107
918a6be6f051
parent 98
869a740ea4ee
child 133
5b6e8eb22796
equal deleted inserted replaced
106:94c7385cf685 107:918a6be6f051
247 for rem_wname in rem_wnames: 247 for rem_wname in rem_wnames:
248 rwname = wrapperName(getConfig('bindir'), rem_wname) 248 rwname = wrapperName(getConfig('bindir'), rem_wname)
249 if os.path.exists(rwname): 249 if os.path.exists(rwname):
250 os.remove(rwname) 250 os.remove(rwname)
251 251
252 # Cleanup our config file 252 # Cleanup our config file(s)
253 for name in ['eric5config.py', 'eric5config.pyc']: 253 for name in ['eric5config.py', 'eric5config.pyc', 'eric5.pth']:
254 e4cfile = os.path.join(pyModDir, name) 254 e5cfile = os.path.join(pyModDir, name)
255 if os.path.exists(e4cfile): 255 if os.path.exists(e5cfile):
256 os.remove(e4cfile) 256 os.remove(e5cfile)
257 257
258 # Cleanup the install directories 258 # Cleanup the install directories
259 for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir', 259 for name in ['ericExamplesDir', 'ericDocDir', 'ericDTDDir', 'ericCSSDir',
260 'ericIconDir', 'ericPixDir', 'ericDir', 'ericTemplatesDir', 260 'ericIconDir', 'ericPixDir', 'ericDir', 'ericTemplatesDir',
261 'ericCodeTemplatesDir', 'ericOthersDir', 'ericStylesDir']: 261 'ericCodeTemplatesDir', 'ericOthersDir', 'ericStylesDir']:
325 shutil.copy('eric5config.pyc', cfg['mdir']) 325 shutil.copy('eric5config.pyc', cfg['mdir'])
326 else: 326 else:
327 shutil.copy('eric5config.py', modDir) 327 shutil.copy('eric5config.py', modDir)
328 if os.path.exists('eric5config.pyc'): 328 if os.path.exists('eric5config.pyc'):
329 shutil.copy('eric5config.pyc', modDir) 329 shutil.copy('eric5config.pyc', modDir)
330
331 # copy the eric5.pth file
332 if distDir:
333 shutil.copy('eric%seric5.pth' % os.sep, cfg['mdir'])
334 else:
335 shutil.copy('eric%seric5.pth' % os.sep, modDir)
336 330
337 # copy the various parts of eric5 331 # copy the various parts of eric5
338 copyTree('eric', cfg['ericDir'], ['*.py', '*.pyc', '*.pyo', '*.pyw'], 332 copyTree('eric', cfg['ericDir'], ['*.py', '*.pyc', '*.pyo', '*.pyw'],
339 ['eric%sExamples' % os.sep]) 333 ['eric%sExamples' % os.sep])
340 copyTree('eric', cfg['ericDir'], ['*.rb'], 334 copyTree('eric', cfg['ericDir'], ['*.rb'],

eric ide

mercurial