GP-0 Correct PyGhidra installEditablePyGhidra build task to work offline

This commit is contained in:
ghidra1 2024-09-17 13:31:42 -04:00
parent e7e62d0fe6
commit bd4d110a51

View File

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