setup-python icon indicating copy to clipboard operation
setup-python copied to clipboard

Extend LIBRARY_PATH as well as LD_LIBRARY_PATH on Linux

Open tyrken opened this issue 1 year ago • 1 comments

Description:

On Linux we already set LD_LIBRARY_PATH to the lib folder under the extracted Python, to allow running apps to find libPython and other libraries. This is not enough to let gcc find those libraries during compilation, e.g. as some Python dependencies do when installing. For this we also need to add the lib folder to the LIBRARY_PATH env-var.

Related issue: Should fix #275 Not sure if the suggestion to override AGENT_TOOLSDIRECTORY for Linux if the existing advanced-docs is needed any more. It certainly didn't work for me and between the two *LIBRARY_PATH env-vars that should be enough.

Check list:

  • [ ] Mark if documentation changes are required.
  • [ ] Mark if tests were added or updated to cover the changes.

tyrken avatar Jul 12 '24 19:07 tyrken

While this PR has been tested and Works-For-Me (tm), https://github.com/actions/python-versions/pull/275 sounds like it would be a better fix if it works as advertised, gets released & the pythons rebuilt...

tyrken avatar Jul 12 '24 20:07 tyrken