Skip to content

pkg-config files (.pc) conflict between default and free-threaded build #119729

@colesbury

Description

@colesbury

Bug report

If you install the default and free-threaded build to the same prefix, some files conflict and will get overwritten by the most recent install:

modified: bin/idle3.13	modified: bin/pydoc3.13	modified: bin/python3.13	typechange: bin/python3.13-config	modified: lib/pkgconfig/python-3.13-embed.pc	modified: lib/pkgconfig/python-3.13.pc 

The most problematic of these are the pkg-config files:

diff --git a/lib/pkgconfig/python-3.13-embed.pc b/lib/pkgconfig/python-3.13-embed.pc index 9bc6ab5..5fc2548 100644 --- a/lib/pkgconfig/python-3.13-embed.pc +++ b/lib/pkgconfig/python-3.13-embed.pc @@ -9,5 +9,5 @@ Description: Embed Python into an application Requires: Version: 3.13 Libs.private: -ldl -framework CoreFoundation -Libs: -L${libdir} -lpython3.13 -Cflags: -I${includedir}/python3.13 +Libs: -L${libdir} -lpython3.13t +Cflags: -I${includedir}/python3.13t diff --git a/lib/pkgconfig/python-3.13.pc b/lib/pkgconfig/python-3.13.pc index c206220..519f20f 100644 --- a/lib/pkgconfig/python-3.13.pc +++ b/lib/pkgconfig/python-3.13.pc @@ -10,4 +10,4 @@ Requires: Version: 3.13 Libs.private: -ldl -framework CoreFoundation Libs: -L${libdir} -Cflags: -I${includedir}/python3.13 +Cflags: -I${includedir}/python3.13t

Maybe the pkg-config files for the free-threaded build should be called python-3.13t.pc and python-3.13t-embed.pc?

Linked PRs

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13bugs and security fixes3.14bugs and security fixesbuildThe build process and cross-buildtopic-free-threadingtype-bugAn unexpected behavior, bug, or error

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions