-
Notifications
You must be signed in to change notification settings - Fork 619
python3-config --ldflags --embed
does not report the correct directory on macOS
#536
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
Comments
Hello @mmomtchev |
We experienced the same issue with a self-hosted runner on Ubuntu 20.04 and Python 3.9. What solved it was adding this to the workflow:
|
hello @mmomtchev, it is expected behaviour Since 3.11 python is installed from the official Python macos packages and But the versions below 3.11 are still installed from the custom prebuilt binares and reside within Does this answer clarify the situation? |
I am afraid that this is not enough for embedded Python - it works by setting the environment variable so the Python executable finds the right library, but when linking, how would the linker pick up the the right Python library? Unless |
@mmomtchev , the reason why python3-config does not print This is intended behaviour of the
And i guess you should not provide the Is the question answered now? |
I made a minimal reproduction of the problem: The python interpreter can find its dynamic library because it knows its location. |
@mmomtchev, i have to agree with you the options provided by
I can hardly help with the further investigation - this question should be addressed to the python community. |
Ok, the workaround is to use |
Description:
python3-config --ldflags --embed
does not report the library locationAction version:
actions/setup-python@v4
Platform:
Runner type:
Tools version:
3.8, 3.9, 3.10, 3.11
Repro steps:
Expected behavior:
The same command on my macbook produces:
Actual behavior:
https://github.com/mmomtchev/pymport/actions/runs/3409283526/jobs/5670857537
The text was updated successfully, but these errors were encountered: