mirror of
https://github.com/actions/setup-python.git
synced 2025-06-28 13:43:47 +00:00
Add CMake hints
This commit is contained in:
parent
766e8c6088
commit
69b94463f5
3 changed files with 59 additions and 0 deletions
|
@ -57,6 +57,12 @@ export async function findPyPyVersion(
|
|||
const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
|
||||
if (updateEnvironment) {
|
||||
core.exportVariable('pythonLocation', installDir);
|
||||
// https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
|
||||
core.exportVariable('Python_ROOT_DIR', installDir);
|
||||
// https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2
|
||||
core.exportVariable('Python2_ROOT_DIR', installDir);
|
||||
// https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3
|
||||
core.exportVariable('Python3_ROOT_DIR', installDir);
|
||||
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
|
||||
core.addPath(pythonLocation);
|
||||
core.addPath(_binDir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue