Skip to content

Commit

Permalink
pythonImportsCheckHook: fixup
Browse files Browse the repository at this point in the history
Co-authored-by: Wolfgang Walther <[email protected]>
  • Loading branch information
ShamrockLee and wolfgangwalther authored Oct 28, 2024
1 parent 894caa3 commit 85eb2d1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ pythonImportsCheckPhase() {
pythonImportsCheckOutput="$python"
fi
export PYTHONPATH="$pythonImportsCheckOutput/@pythonSitePackages@:$PYTHONPATH"
(cd "$pythonImportsCheckOutput" && PYTHON_IMPORTS_CHECK="${pythonImportsCheck[*]}" @pythonCheckInterpreter@ -c 'import os; import importlib; list(map(lambda mod: importlib.import_module(mod), os.environ["PYTHON_IMPORTS_CHECK"].split()))')
(cd "$pythonImportsCheckOutput" && @pythonCheckInterpreter@ -c 'import sys; import importlib; list(map(lambda mod: importlib.import_module(mod), sys.argv[1:]))' ${pythonImportsCheck[*]})
fi
}

Expand Down

0 comments on commit 85eb2d1

Please sign in to comment.