@@ -63884,25 +63884,18 @@ 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
63888
63887
if (updateEnvironment) {
63889
63888
core.exportVariable('pythonLocation', installDir);
63889
+ // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
63890
+ core.exportVariable('Python_ROOT_DIR', installDir);
63891
+ // https://cmake.org/cmake/help/latest/module/FindPython2.html#module:FindPython2
63892
+ core.exportVariable('Python2_ROOT_DIR', installDir);
63893
+ // https://cmake.org/cmake/help/latest/module/FindPython3.html#module:FindPython3
63894
+ core.exportVariable('Python3_ROOT_DIR', installDir);
63890
63895
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
63891
63896
core.addPath(pythonLocation);
63892
63897
core.addPath(_binDir);
63893
63898
}
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)
63906
63899
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
63907
63900
core.setOutput('python-path', pythonPath);
63908
63901
return { resolvedPyPyVersion, resolvedPythonVersion };
@@ -64055,8 +64048,6 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
64055
64048
`The list of all available versions can be found here: ${installer.MANIFEST_URL}`
64056
64049
].join(os.EOL));
64057
64050
}
64058
- <<<<<<< HEAD
64059
- =======
64060
64051
core.exportVariable('pythonLocation', installDir);
64061
64052
// https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
64062
64053
core.exportVariable('Python_ROOT_DIR', installDir);
@@ -64074,7 +64065,6 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
64074
64065
core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);
64075
64066
}
64076
64067
}
64077
- >>>>>>> 31fd3d4 (Add CMake hints)
64078
64068
const _binDir = binDir(installDir);
64079
64069
const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
64080
64070
const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
0 commit comments