@@ -63884,12 +63884,25 @@ function findPyPyVersion(versionSpec, architecture, updateEnvironment) {
6388463884 const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
6388563885 const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
6388663886 const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
63887+ <<<<<<< HEAD
6388763888 if (updateEnvironment) {
6388863889 core.exportVariable('pythonLocation', installDir);
6388963890 core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
6389063891 core.addPath(pythonLocation);
6389163892 core.addPath(_binDir);
6389263893 }
63894+ =======
63895+ core.exportVariable('pythonLocation', installDir);
63896+ // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
63897+ core.exportVariable('Python_ROOT_DIR', installDir);
63898+ // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2
63899+ core.exportVariable('Python2_ROOT_DIR', installDir);
63900+ // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3
63901+ core.exportVariable('Python3_ROOT_DIR', installDir);
63902+ core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
63903+ core.addPath(pythonLocation);
63904+ core.addPath(_binDir);
63905+ >>>>>>> 31fd3d4 (Add CMake hints)
6389363906 core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
6389463907 core.setOutput('python-path', pythonPath);
6389563908 return { resolvedPyPyVersion, resolvedPythonVersion };
@@ -64042,6 +64055,26 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
6404264055 `The list of all available versions can be found here: ${installer.MANIFEST_URL}`
6404364056 ].join(os.EOL));
6404464057 }
64058+ <<<<<<< HEAD
64059+ =======
64060+ core.exportVariable('pythonLocation', installDir);
64061+ // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
64062+ core.exportVariable('Python_ROOT_DIR', installDir);
64063+ // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2
64064+ core.exportVariable('Python2_ROOT_DIR', installDir);
64065+ // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3
64066+ core.exportVariable('Python3_ROOT_DIR', installDir);
64067+ core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig');
64068+ if (utils_1.IS_LINUX) {
64069+ const libPath = process.env.LD_LIBRARY_PATH
64070+ ? `:${process.env.LD_LIBRARY_PATH}`
64071+ : '';
64072+ const pyLibPath = path.join(installDir, 'lib');
64073+ if (!libPath.split(':').includes(pyLibPath)) {
64074+ core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);
64075+ }
64076+ }
64077+ >>>>>>> 31fd3d4 (Add CMake hints)
6404564078 const _binDir = binDir(installDir);
6404664079 const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
6404764080 const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
0 commit comments