@@ -63884,12 +63884,25 @@ function findPyPyVersion(versionSpec, architecture, updateEnvironment) {
63884
63884
const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
63885
63885
const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
63886
63886
const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
63887
+ <<<<<<< HEAD
63887
63888
if (updateEnvironment) {
63888
63889
core.exportVariable('pythonLocation', installDir);
63889
63890
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
63890
63891
core.addPath(pythonLocation);
63891
63892
core.addPath(_binDir);
63892
63893
}
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)
63893
63906
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
63894
63907
core.setOutput('python-path', pythonPath);
63895
63908
return { resolvedPyPyVersion, resolvedPythonVersion };
@@ -64042,6 +64055,26 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
64042
64055
`The list of all available versions can be found here: ${installer.MANIFEST_URL}`
64043
64056
].join(os.EOL));
64044
64057
}
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)
64045
64078
const _binDir = binDir(installDir);
64046
64079
const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
64047
64080
const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
0 commit comments