GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||
GeezerVison is showing github.com — Inject LD_LIBRARY_PATH library path into Python manifest install and setup by magnetikonline · Pull Request #144 · actions/setup-python Conversation
Contributor
This PR sets up the env var Note this only applies to action runs under Linux based OSes. While in the area, noted small typo in Related prior discussions:
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I could be wrong but I think it is better to always add
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @maxim-lobanov the libs loaded (filename) are unique to the Python version. Yeah I was trying to avoid the situation if someone did decide to include the Maybe it's better to:
What do you think @maxim-lobanov ?
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Even someone decide to include If we would like to avoid it, your current approach should work (since cc: @konradpabjan
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Cheers - yeah let's see what @konradpabjan thinks as a second opinion. Able to pivot this to above if needed (re-insert as the first component).
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Overall the current approach seems good 👍 I do have once concern though around where where the env variable is set: We're currently omitting a I think The order of
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. @konradpabjan this is covered (the const libPath = process.env.LD_LIBRARY_PATH ? `:${process.env.LD_LIBRARY_PATH}` : ''; Note if
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Got it! Thanks for the clarification. I accidently missed it earlier 😞 With everything looks great!
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Not a problem - it's an easy miss 😄
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsUh oh!
There was an error while loading. Please reload this page.
maxim-lobanov
approved these changes
|
There was an error while loading. Please reload this page.
|
Thanks @maxim-lobanov 👍 I had a bit more of a think about this - if we do always want the current Python lib path first - and never duplicated, this would be the implement. Nothing too tricky, should we swap this out? core.exportVariable('pythonLocation', installDir); if (IS_LINUX) { const libPaths = (process.env.LD_LIBRARY_PATH || '').split(':'); const pyLibPath = path.join(installDir, 'lib'); const foundIdx = libPaths.indexOf(pyLibPath); if (foundIdx > -1) { libPaths.splice(foundIdx, 1); } libPaths.unshift(pyLibPath); core.exportVariable('LD_LIBRARY_PATH', libPaths.join(':')); } core.addPath(installDir); core.addPath(binDir(installDir)); Maybe this is a little more reliable - the most recent Python lib path will always be first this way. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@magnetikonline , have you tested that your changes work as expected for you? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
I have @maxim-lobanov - tested last week. 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the PR @magnetikonline 🎉
I'm going to go ahead and approve this and merge it into the main branch. I don't expect any problems but this will allow us to test on a large subset of users that pin to @main. If everything is good, I'll create a new release and update the v2 tag in a few days.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Awesome - thanks for your time @konradpabjan / @maxim-lobanov - I just retested Will be great to see this in V2 soon! 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hello @konradpabjan - just wondering if we have an ETA for tagging Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@magnetikonline I've created a new release ( Thanks again for the PR! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Fantastic - thanks @konradpabjan 👍 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…setup (actions#144) * Adding LD_LIBRARY_PATH env var to both setup and install tasks * Rebuild dist/index.js * Fixed some typos in contributors.md Markdown
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.