Skip to content

Commit ae11205

Browse files
Merge pull request #400 from akv-platform/v-sedoli/pkg-config
set PKG_CONFIG_PATH environment var
2 parents a69041c + 5e1e05c commit ae11205

File tree

3 files changed

+4
-0
lines changed

3 files changed

+4
-0
lines changed

dist/setup/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -52374,6 +52374,7 @@ function findPyPyVersion(versionSpec, architecture) {
5237452374
const _binDir = path.join(installDir, pipDir);
5237552375
const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
5237652376
core.exportVariable('pythonLocation', pythonLocation);
52377+
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
5237752378
core.addPath(pythonLocation);
5237852379
core.addPath(_binDir);
5237952380
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
@@ -57009,6 +57010,7 @@ function useCpythonVersion(version, architecture) {
5700957010
].join(os.EOL));
5701057011
}
5701157012
core.exportVariable('pythonLocation', installDir);
57013+
core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig');
5701257014
if (utils_1.IS_LINUX) {
5701357015
const libPath = process.env.LD_LIBRARY_PATH
5701457016
? `:${process.env.LD_LIBRARY_PATH}`

src/find-pypy.ts

+1
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,7 @@ export async function findPyPyVersion(
5050
const _binDir = path.join(installDir, pipDir);
5151
const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
5252
core.exportVariable('pythonLocation', pythonLocation);
53+
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
5354
core.addPath(pythonLocation);
5455
core.addPath(_binDir);
5556
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());

src/find-python.ts

+1
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export async function useCpythonVersion(
7070
}
7171

7272
core.exportVariable('pythonLocation', installDir);
73+
core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig');
7374

7475
if (IS_LINUX) {
7576
const libPath = process.env.LD_LIBRARY_PATH

0 commit comments

Comments
 (0)