@@ -63884,25 +63884,18 @@ 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
6388863887 if (updateEnvironment) {
6388963888 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);
6389063895 core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
6389163896 core.addPath(pythonLocation);
6389263897 core.addPath(_binDir);
6389363898 }
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)
6390663899 core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
6390763900 core.setOutput('python-path', pythonPath);
6390863901 return { resolvedPyPyVersion, resolvedPythonVersion };
@@ -64055,8 +64048,6 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
6405564048 `The list of all available versions can be found here: ${installer.MANIFEST_URL}`
6405664049 ].join(os.EOL));
6405764050 }
64058- <<<<<<< HEAD
64059- =======
6406064051 core.exportVariable('pythonLocation', installDir);
6406164052 // https://cmake.org/cmake/help/latest/module/FindPython.html#module:FindPython
6406264053 core.exportVariable('Python_ROOT_DIR', installDir);
@@ -64074,7 +64065,6 @@ function useCpythonVersion(version, architecture, updateEnvironment) {
6407464065 core.exportVariable('LD_LIBRARY_PATH', pyLibPath + libPath);
6407564066 }
6407664067 }
64077- >>>>>>> 31fd3d4 (Add CMake hints)
6407864068 const _binDir = binDir(installDir);
6407964069 const binaryExtension = utils_1.IS_WINDOWS ? '.exe' : '';
6408064070 const pythonPath = path.join(utils_1.IS_WINDOWS ? installDir : _binDir, `python${binaryExtension}`);
0 commit comments