Skip to content

Commit 0f4b1a6

Browse files
committed
fix: add the python Scripts/bin path to the path for linux
1 parent 46f6568 commit 0f4b1a6

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

dist/node12/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node12/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup_cpp.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/node16/setup_cpp.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/python/python.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,8 @@ export async function addPythonBaseExecPrefix(python: string) {
140140

141141
// detection using python.sys
142142
const base_exec_prefix = (await getExecOutput(`${python} -c "import sys;print(sys.base_exec_prefix);"`)).stdout.trim()
143-
dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "bin"))
143+
// any of these are possible depending on the operating system!
144+
dirs.push(join(base_exec_prefix, "Scripts"), join(base_exec_prefix, "Scripts", "bin"), join(base_exec_prefix, "bin"))
144145

145146
// exclude the non existing ones
146147
dirs = dirs.filter((dir) => existsSync(dir))

0 commit comments

Comments
 (0)