-
-
Notifications
You must be signed in to change notification settings - Fork 588
fix: Add libdir to library search path #2476
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because this is gated by a feature toggle, it seems to be low risk to include.
Just want to respond to something the comment says:
It's not possible to reliably get the correct Python interpreter. This is because the repo phase doesn't know, and can't know, what the build phase is going to do (i.e. what python interpreter will be used). The basic change in this PR is somewhat an improvement, but yeah -- just wanted to point out it'll still be prone to issues. To really fix this, the sdist building needs to move into the build phase. |
I'll add some ideas about this in #2410. |
Is there anything else you'd like me to do for this PR? |
We discovered when dealing with libraries such as
psycopg2
that the wheel would attempt to link againstlibpython.a
. This fix points the linker at the correct python version being used.