-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Unexpected prefix
value in .../lib/pkgconfig/python-3.<minor>.pc
#10185
Comments
prefix
in .../lib/pkgconfig/python-3.<minor>.pc
prefix
value in .../lib/pkgconfig/python-3.<minor>.pc
I think we need to solve this in uv by patching |
## Summary Closes #10185. ## Test Plan Ran `cargo run python install 3.10.15 --reinstall`; verified that `python3.pc` contained: ``` # See: man pkg-config prefix=/Users/crmarsh/.local/share/uv/python/cpython-3.10.15-macos-aarch64-none exec_prefix=${prefix} libdir=${exec_prefix}/lib includedir=${prefix}/include Name: Python Description: Build a C extension for Python Requires: Version: 3.10 Libs.private: -ldl -framework CoreFoundation Libs: Cflags: -I${includedir}/python3.10 ```
I'm encountering a very similar, possibly same, issue with uv 0.5.14 setup:
then
I made sure to reinstall Python 3.13 after I upgraded uv to 0.5.14. I already had this issue with earlier versions of uv but didn't have time to report it at the time. I found this issue from uv 0.5.14's release notes. |
I opened a separate issue at #10558 |
I am aware that this is a documented quirk:
- https://gregoryszorc.com/docs/python-build-standalone/main/quirks.html#references-to-build-time-paths
Nonetheless, I was asked to open this issue as it seems it might get resolved for once 🥳
I was trying to compile a C extension using
meson
and it kept throwing an error that it couldn't findPython.h
for the specified Python version and upon closer inspection it looked like it was not including the correct directory because the directory it was attempting to include started with/install
which is not a path on my machine, so I went to the file mentioned in the title and found that it contains this (the<minor>
was actually the version I had, in this case3.12
):So the
prefix=/install
was unexpected, what I would have expected would have been (in my particular case)After editing the file manually and trying to run
meson
again, it worked.The text was updated successfully, but these errors were encountered: