472 dia = PipDialog(self.tr("Install Packages from Requirements")) |
472 dia = PipDialog(self.tr("Install Packages from Requirements")) |
473 res = dia.startProcess(interpreter, args) |
473 res = dia.startProcess(interpreter, args) |
474 if res: |
474 if res: |
475 dia.exec() |
475 dia.exec() |
476 |
476 |
|
477 def installEditableProject(self, interpreter, projectPath): |
|
478 """ |
|
479 Public method to install a project in development mode. |
|
480 |
|
481 @param interpreter interpreter to be used for execution |
|
482 @type str |
|
483 @param projectPath path of the project |
|
484 @type str |
|
485 """ |
|
486 if interpreter and projectPath: |
|
487 args = ["-m", "pip", "install"] |
|
488 if Preferences.getPip("PipSearchIndex"): |
|
489 indexUrl = Preferences.getPip("PipSearchIndex") + "/simple" |
|
490 args += ["--index-url", indexUrl] |
|
491 args += ["--editable", projectPath] |
|
492 |
|
493 dia = PipDialog(self.tr("Install Project")) |
|
494 res = dia.startProcess(interpreter, args) |
|
495 if res: |
|
496 dia.exec() |
|
497 |
477 def uninstallPackages(self, packages, venvName): |
498 def uninstallPackages(self, packages, venvName): |
478 """ |
499 """ |
479 Public method to uninstall the given list of packages. |
500 Public method to uninstall the given list of packages. |
480 |
501 |
481 @param packages list of packages to uninstall |
502 @param packages list of packages to uninstall |