mirror of
https://github.com/actions/setup-python.git
synced 2026-01-19 19:38:56 +08:00
Extend PKG_CONFIG path rather than overwriting it
This commit is contained in:
parent
cfd55ca824
commit
87c35f43f0
5 changed files with 51 additions and 5 deletions
|
|
@ -6,6 +6,8 @@ import * as semver from 'semver';
|
|||
import * as core from '@actions/core';
|
||||
import * as tc from '@actions/tool-cache';
|
||||
|
||||
import {addPkgConfigPathToEnv} from './utils';
|
||||
|
||||
export async function findGraalPyVersion(
|
||||
versionSpec: string,
|
||||
architecture: string,
|
||||
|
|
@ -67,7 +69,7 @@ export async function findGraalPyVersion(
|
|||
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');
|
||||
addPkgConfigPathToEnv(pythonLocation + '/lib/pkgconfig');
|
||||
core.addPath(pythonLocation);
|
||||
core.addPath(_binDir);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue