473 try: |
473 try: |
474 return _pkg_config[name] |
474 return _pkg_config[name] |
475 except KeyError: |
475 except KeyError: |
476 pass |
476 pass |
477 |
477 |
478 raise AttributeError, '"%%s" is not a valid configuration value' %% name |
478 raise AttributeError('"%%s" is not a valid configuration value' %% name) |
479 """ % (cfg['ericDir'], cfg['ericPixDir'], cfg['ericIconDir'], |
479 """ % (cfg['ericDir'], cfg['ericPixDir'], cfg['ericIconDir'], |
480 cfg['ericDTDDir'], cfg['ericCSSDir'], |
480 cfg['ericDTDDir'], cfg['ericCSSDir'], |
481 cfg['ericStylesDir'], cfg['ericDocDir'], |
481 cfg['ericStylesDir'], cfg['ericDocDir'], |
482 cfg['ericExamplesDir'], cfg['ericTranslationsDir'], |
482 cfg['ericExamplesDir'], cfg['ericTranslationsDir'], |
483 cfg['ericTemplatesDir'], |
483 cfg['ericTemplatesDir'], |
731 if doCompile: |
731 if doCompile: |
732 print("\nCompiling source files...") |
732 print("\nCompiling source files...") |
733 if distDir: |
733 if distDir: |
734 compileall.compile_dir("eric", |
734 compileall.compile_dir("eric", |
735 ddir = os.path.join(distDir, modDir, cfg['ericDir']), |
735 ddir = os.path.join(distDir, modDir, cfg['ericDir']), |
736 rx = re.compile("Python3"), |
736 rx = re.compile("DebugClients/Python/"), |
737 quiet = True) |
737 quiet = True) |
738 py_compile.compile("eric5config.py", |
738 py_compile.compile("eric5config.py", |
739 dfile = os.path.join(distDir, modDir, "eric5config.py")) |
739 dfile = os.path.join(distDir, modDir, "eric5config.py")) |
740 else: |
740 else: |
741 compileall.compile_dir("eric", |
741 compileall.compile_dir("eric", |
742 ddir = os.path.join(modDir, cfg['ericDir']), |
742 ddir = os.path.join(modDir, cfg['ericDir']), |
743 rx = re.compile("Python3"), |
743 rx = re.compile("DebugClients/Python/"), |
744 quiet = True) |
744 quiet = True) |
745 py_compile.compile("eric5config.py", |
745 py_compile.compile("eric5config.py", |
746 dfile = os.path.join(modDir, "eric5config.py")) |
746 dfile = os.path.join(modDir, "eric5config.py")) |
747 print("\nInstalling eric5 ...") |
747 print("\nInstalling eric5 ...") |
748 installEric() |
748 installEric() |