Skip to content

Commit

Permalink
Merge pull request #400 from akv-platform/v-sedoli/pkg-config
Browse files Browse the repository at this point in the history
set PKG_CONFIG_PATH environment var
  • Loading branch information
marko-zivic-93 committed May 4, 2022
2 parents a69041c + 5e1e05c commit ae11205
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/setup/index.js
Expand Up @@ -52374,6 +52374,7 @@ function findPyPyVersion(versionSpec, architecture) {
const _binDir = path.join(installDir, pipDir);
const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
core.exportVariable('pythonLocation', pythonLocation);
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
core.addPath(pythonLocation);
core.addPath(_binDir);
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
Expand Down Expand Up @@ -57009,6 +57010,7 @@ function useCpythonVersion(version, architecture) {
].join(os.EOL));
}
core.exportVariable('pythonLocation', installDir);
core.exportVariable('PKG_CONFIG_PATH', installDir + '/lib/pkgconfig');
if (utils_1.IS_LINUX) {
const libPath = process.env.LD_LIBRARY_PATH
? `:${process.env.LD_LIBRARY_PATH}`
Expand Down
1 change: 1 addition & 0 deletions src/find-pypy.ts
Expand Up @@ -50,6 +50,7 @@ export async function findPyPyVersion(
const _binDir = path.join(installDir, pipDir);
const pythonLocation = pypyInstall.getPyPyBinaryPath(installDir);
core.exportVariable('pythonLocation', pythonLocation);
core.exportVariable('PKG_CONFIG_PATH', pythonLocation + '/lib/pkgconfig');
core.addPath(pythonLocation);
core.addPath(_binDir);
core.setOutput('python-version', 'pypy' + resolvedPyPyVersion.trim());
Expand Down
1 change: 1 addition & 0 deletions src/find-python.ts
Expand Up @@ -70,6 +70,7 @@ export async function useCpythonVersion(
}

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

if (IS_LINUX) {
const libPath = process.env.LD_LIBRARY_PATH
Expand Down

0 comments on commit ae11205

Please sign in to comment.