GP-5257: Fixing Gradle warnings

This commit is contained in:
Ryan Kurtz 2025-01-10 13:51:33 -05:00
parent eaa2a5c6b3
commit 44fb13b292
36 changed files with 234 additions and 346 deletions

View file

@ -47,17 +47,24 @@ task buildPyPackage {
inputs.files(assemblePyPackage)
outputs.dir(dist)
def debuggerRmiTraceProject = project(":Debugger-rmi-trace")
doLast {
if (rootProject.PYTHON3 == null) {
throw new GradleException("A supported version of Python [${PYTHON_SUPPORTED}] was not found!")
}
File setuptools = project(":Debugger-rmi-trace").findPyDep(".")
exec {
File setuptools = debuggerRmiTraceProject.findPyDep(".")
def exec = providers.exec {
workingDir { file("build/pypkg") }
ignoreExitValue = true
commandLine rootProject.PYTHON3
args "-m", "pip", "wheel", "-w", "dist/", "--no-index", "--no-deps", "-f", setuptools, "."
}
if (exec.result.get().exitValue != 0) {
throw new GradleException(exec.standardError.asText.get().strip())
}
}
}