mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-31 11:55:37 +08:00
GP-0: Python build improvements
This commit is contained in:
@@ -51,10 +51,8 @@ task buildPyPackage {
|
||||
File setuptools = project(":Debugger-rmi-trace").findPyDep(".")
|
||||
exec {
|
||||
workingDir { "build/pypkg" }
|
||||
commandLine rootProject.PYTHON3, "-m", "pip"
|
||||
args "wheel", "-w", "dist/", "--no-index", "--no-deps"
|
||||
args "-f", setuptools
|
||||
args "."
|
||||
commandLine rootProject.PYTHON3
|
||||
args "-m", "pip", "wheel", "-w", "dist/", "--no-index", "--no-deps", "-f", setuptools, "."
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -25,9 +25,10 @@ task createPythonVirtualEnvironment(type: Exec) {
|
||||
project.ext.PYTHON3_VENV = "${rootProject.projectDir}/${venvDir}/${binDir}/python${suffix}"
|
||||
project.ext.PIP3_VENV = "${rootProject.projectDir}/${venvDir}/${binDir}/pip${suffix}"
|
||||
|
||||
commandLine rootProject.PYTHON3, "-m", "venv", venvDir, "--copies"
|
||||
commandLine rootProject.PYTHON3
|
||||
args "-m", "venv", venvDir, "--copies"
|
||||
}
|
||||
|
||||
if (findPython3(false)) {
|
||||
if (findPython3(false, false)) {
|
||||
rootProject.prepDev.dependsOn createPythonVirtualEnvironment
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user