From bd4d110a512ae537228e391a379305145cfecf82 Mon Sep 17 00:00:00 2001 From: ghidra1 Date: Tue, 17 Sep 2024 13:31:42 -0400 Subject: [PATCH] GP-0 Correct PyGhidra installEditablePyGhidra build task to work offline --- Ghidra/Features/PyGhidra/build.gradle | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Ghidra/Features/PyGhidra/build.gradle b/Ghidra/Features/PyGhidra/build.gradle index f701a80891..dead56a036 100644 --- a/Ghidra/Features/PyGhidra/build.gradle +++ b/Ghidra/Features/PyGhidra/build.gradle @@ -62,8 +62,12 @@ task installJPype(type: Exec) { // Install PyGhidra in editable mode to the development virtual environment task installEditablePyGhidra(type: Exec) { dependsOn("installJPype") + + File depsDir = file("${DEPS_DIR}/PyGhidra") + File binRepoDir = file("${BIN_REPO}/ExternalPyWheels") + def dir = depsDir.exists() ? depsDir : binRepoDir - commandLine "$PYTHON3_VENV", "-m", "pip", "install", "-e", "src/main/py" + commandLine "$PYTHON3_VENV", "-m", "pip", "install", "-e", "src/main/py", "--no-index", "-f", "$dir" } if (findPython3(false)) {