(runtimePython)
| 2544 | } |
| 2545 | |
| 2546 | function verifyPythonRuntime(runtimePython) { |
| 2547 | const result = runSync( |
| 2548 | runtimePython, |
| 2549 | ['-c', 'import deepscientist.cli; import cryptography; import _cffi_backend; print("ok")'], |
| 2550 | { capture: true, allowFailure: true } |
| 2551 | ); |
| 2552 | if (result.status !== 0 && result.stderr) { |
| 2553 | process.stderr.write(result.stderr); |
| 2554 | } |
| 2555 | return result.status === 0; |
| 2556 | } |
| 2557 | |
| 2558 | function readJsonFile(filePath) { |
| 2559 | if (!fs.existsSync(filePath)) { |
no test coverage detected