mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-02-16 07:30:16 +00:00
GP-0: Removing python-related prints from build
This commit is contained in:
parent
63e64d5b28
commit
c8790828f4
@ -22,11 +22,9 @@ def checkPythonVersion(String pyCmd) {
|
|||||||
standardOutput = stdout
|
standardOutput = stdout
|
||||||
}
|
}
|
||||||
def version = "$stdout".strip()
|
def version = "$stdout".strip()
|
||||||
println "$pyCmd is version $version"
|
|
||||||
return version
|
return version
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
println "Could not run $pyCmd: $e"
|
|
||||||
return "ABSENT"
|
return "ABSENT"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -36,11 +34,9 @@ ext.SUPPORTED_PY_VERSIONS = ['3.7', '3.8', '3.9', '3.10', '3.11', '3.12']
|
|||||||
def findPython3() {
|
def findPython3() {
|
||||||
for (pyCmd in ['python3', 'python']) {
|
for (pyCmd in ['python3', 'python']) {
|
||||||
if (checkPythonVersion(pyCmd) in SUPPORTED_PY_VERSIONS) {
|
if (checkPythonVersion(pyCmd) in SUPPORTED_PY_VERSIONS) {
|
||||||
println "Using $pyCmd"
|
|
||||||
return pyCmd
|
return pyCmd
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
println "Could not find compatible Python 3"
|
|
||||||
// Don't fail until task execution. Just let "python3" fail.
|
// Don't fail until task execution. Just let "python3" fail.
|
||||||
return 'python3'
|
return 'python3'
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user