New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
pkg-config and pythonX.X-config not correctly installed by actions/setup-python? #297
Comments
Hello @jdpipe, thank you for report!
To adapt this path to any OS and any Python version you can use
Could you please check and confirm that adding this environment variable works for you? |
Thanks @nikita-bykov, that sounds like it should work. However can I suggest that So I think that Note that you can see what
Another option here is to place Python's |
@jdpipe setup-python action has been updated to set PKG_CONFIG_PATH, so i believe @marko-zivic-93 can close this issue as resolved, but please feel free to re-open the issue or create another one in case of any problems. Much thanks for your assistance. |
Description:
I have a workflow that required building of shared libraries for OpenModelica that embed the Python interpreter. When using actions/setup-python to test this workflow, I don't seem to have a reliable way of detecting the configuration options for linking to libpython -- neither
pkg-config
norpython3.8-config
(or whatever it is for the version of Python in question) seem to work reliably. What is the suggested approach?Action version:
I'm using the current
actions/setup-python@v2
See https://github.com/SolarTherm/SolarTherm/runs/4515306450?check_suite_focus=true for details.
Platform:
Runner type:
Tools version:
3.8 on 18.04
3.9 on 20.04
(see output at above link)
Repro steps:
See above link.
Expected behavior:
I would expect both pkg-config and python-config scripts to be provided. They don't seem to be.
Actual behavior:
Missing scripts/
.pc
files results in build errors.The text was updated successfully, but these errors were encountered: