418 from PyInstaller.PyInstallerConfigDialog import PyInstallerConfigDialog |
418 from PyInstaller.PyInstallerConfigDialog import PyInstallerConfigDialog |
419 params = project.getData('PACKAGERSPARMS', "PYINSTALLER") |
419 params = project.getData('PACKAGERSPARMS', "PYINSTALLER") |
420 dlg = PyInstallerConfigDialog(project, executables, params, |
420 dlg = PyInstallerConfigDialog(project, executables, params, |
421 mode="installer") |
421 mode="installer") |
422 if dlg.exec_() == QDialog.Accepted: |
422 if dlg.exec_() == QDialog.Accepted: |
423 args, params = dlg.generateParameters() |
423 args, params, script = dlg.generateParameters() |
424 project.setData('PACKAGERSPARMS', "PYINSTALLER", params) |
424 project.setData('PACKAGERSPARMS', "PYINSTALLER", params) |
425 |
|
426 # TODO: implement pyinstaller |
|
427 return |
|
428 |
425 |
429 # now do the call |
426 # now do the call |
430 from PyInstaller.PyInstallerExecDialog import PyInstallerExecDialog |
427 from PyInstaller.PyInstallerExecDialog import PyInstallerExecDialog |
431 dia = PyInstallerExecDialog("pyinstaller") |
428 dia = PyInstallerExecDialog("pyinstaller") |
432 dia.show() |
429 dia.show() |
433 res = dia.start(args, params, project.getProjectPath(), |
430 res = dia.start(args, params, project, script) |
434 project.getMainScript()) |
|
435 if res: |
431 if res: |
436 dia.exec_() |
432 dia.exec_() |
437 |
433 |
438 @pyqtSlot() |
434 @pyqtSlot() |
439 def __pyiMakeSpec(self): |
435 def __pyiMakeSpec(self): |