mirror of https://github.com/aminya/setup-cpp
fix: add the python Scripts/bin path to the path for linux
This commit is contained in:
parent
46f6568a2e
commit
0f4b1a6238
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
@ -140,7 +140,8 @@ export async function addPythonBaseExecPrefix(python: string) {
|
||||||
|
|
||||||
// detection using python.sys
|
// detection using python.sys
|
||||||
const base_exec_prefix = (await getExecOutput(`${python} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim()
|
const base_exec_prefix = (await getExecOutput(`${python} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim()
|
||||||
dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "bin"))
|
// any of these are possible depending on the operating system!
|
||||||
|
dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "Scripts", "bin"), join(base_exec_prefix, "bin"))
|
||||||
|
|
||||||
// exclude the non existing ones
|
// exclude the non existing ones
|
||||||
dirs = dirs.filter((dir) => existsSync(dir))
|
dirs = dirs.filter((dir) => existsSync(dir))
|
||||||
|
|
Loading…
Reference in New Issue