-
-
Notifications
You must be signed in to change notification settings - Fork 31.3k
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
gh-119729: Use 't' in pkg-config file name for free-threaded build #119738
Conversation
For example, the free-threaded build now generates `lib/pkgconfig/python-3.13t.pc`.
@@ -40,6 +40,7 @@ LINKCC= @LINKCC@ | |||
AR= @AR@ | |||
READELF= @READELF@ | |||
SOABI= @SOABI@ | |||
ABIFLAGS= @ABIFLAGS@ |
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.
LDVERSION
is defined as $(VERSION)$(ABIFLAGS)
, so it's important to define ABIFLAGS
first
I figured it would be good to start with a narrow change:
I think we'll want to consider doing more, such as only installing |
@@ -0,0 +1,3 @@ | |||
On POSIX systems, the pkg-config (``.pc``) files now include the ABI flags. | |||
For example, the free-threaded build generates ``python-3.14t.pc`` and the |
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.
This also changes the debug one to have a "d" as well no?
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.
Yeah. Do you think that's problematic or should I just update the NEWS to make that more clear?
For context, we already do that for things like the include
directories, which look like include/python3.14td
for the free-threaded debug builds.
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.
Just update the news entry because that's the only change that affects normal builds (maybe even mentioning it in the what's new).
Thanks @colesbury for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
…ild (pythonGH-119738) For example, the free-threaded build now generates `lib/pkgconfig/python-3.13t.pc` and the debug build generates `lib/pkgconfig/python-3.13d.pc`. (cherry picked from commit 1c04c63) Co-authored-by: Sam Gross <colesbury@gmail.com>
GH-119797 is a backport of this pull request to the 3.13 branch. |
…ild (python#119738) For example, the free-threaded build now generates `lib/pkgconfig/python-3.13t.pc` and the debug build generates `lib/pkgconfig/python-3.13d.pc`.
…ild (python#119738) For example, the free-threaded build now generates `lib/pkgconfig/python-3.13t.pc` and the debug build generates `lib/pkgconfig/python-3.13d.pc`.
For example, the free-threaded build now generates
lib/pkgconfig/python-3.13t.pc
.pkg-config
files (.pc
) conflict between default and free-threaded build #119729