Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-0 Correct PyGhidra installEditablePyGhidra build task to work offline

ghidra1bd4d110a512a
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)) {