652 args += ["--index-url", indexUrl] |
652 args += ["--index-url", indexUrl] |
653 |
653 |
654 proc = QProcess() |
654 proc = QProcess() |
655 proc.start(interpreter, args) |
655 proc.start(interpreter, args) |
656 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
656 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
657 output = ( |
657 output = str( |
658 str( |
658 proc.readAllStandardOutput(), |
659 proc.readAllStandardOutput(), |
659 Preferences.getSystem("IOEncoding"), |
660 Preferences.getSystem("IOEncoding"), |
660 "replace", |
661 "replace", |
661 ).strip() |
662 ) |
|
663 .strip() |
|
664 ) |
|
665 if output: |
662 if output: |
666 output = output.splitlines()[0] |
663 output = output.splitlines()[0] |
667 try: |
664 try: |
668 jsonList = json.loads(output) |
665 jsonList = json.loads(output) |
669 except Exception: |
666 except Exception: |
734 args += ["--index-url", indexUrl] |
731 args += ["--index-url", indexUrl] |
735 |
732 |
736 proc = QProcess() |
733 proc = QProcess() |
737 proc.start(interpreter, args) |
734 proc.start(interpreter, args) |
738 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
735 if proc.waitForStarted(15000) and proc.waitForFinished(30000): |
739 output = ( |
736 output = str( |
740 str( |
737 proc.readAllStandardOutput(), |
741 proc.readAllStandardOutput(), |
738 Preferences.getSystem("IOEncoding"), |
742 Preferences.getSystem("IOEncoding"), |
739 "replace", |
743 "replace", |
740 ).strip() |
744 ) |
|
745 .strip() |
|
746 ) |
|
747 if output: |
741 if output: |
748 output = output.splitlines()[0] |
742 output = output.splitlines()[0] |
749 try: |
743 try: |
750 jsonList = json.loads(output) |
744 jsonList = json.loads(output) |
751 except Exception: |
745 except Exception: |