640 if self.project.pdata["PROGLANGUAGE"][0] in \ |
640 if self.project.pdata["PROGLANGUAGE"][0] in \ |
641 ["Python", "Python2"]: |
641 ["Python", "Python2"]: |
642 args.append("-py2") |
642 args.append("-py2") |
643 else: |
643 else: |
644 args.append("-py3") |
644 args.append("-py3") |
645 elif self.project.getProjectType() in [ |
645 elif self.project.getProjectType() in ["PyQt5", "PyQt5C"]: |
646 "PyQt5", "PyQt5C", "E6Plugin"]: |
|
647 self.rccCompiler = 'pyrcc5' |
646 self.rccCompiler = 'pyrcc5' |
|
647 if Utilities.isWindowsPlatform(): |
|
648 self.rccCompiler += '.exe' |
|
649 elif self.project.getProjectType() in ["E6Plugin"]: |
|
650 if PYQT_VERSION < 0x050000: |
|
651 self.rccCompiler = 'pyrcc4' |
|
652 if self.project.pdata["PROGLANGUAGE"][0] in \ |
|
653 ["Python", "Python2"]: |
|
654 args.append("-py2") |
|
655 else: |
|
656 args.append("-py3") |
|
657 else: |
|
658 self.rccCompiler = 'pyrcc5' |
648 if Utilities.isWindowsPlatform(): |
659 if Utilities.isWindowsPlatform(): |
649 self.rccCompiler += '.exe' |
660 self.rccCompiler += '.exe' |
650 elif self.project.getProjectType() in ["PySide", "PySideC"]: |
661 elif self.project.getProjectType() in ["PySide", "PySideC"]: |
651 self.rccCompiler = Utilities.generatePySideToolPath( |
662 self.rccCompiler = Utilities.generatePySideToolPath( |
652 'pyside-rcc') |
663 'pyside-rcc') |