Skip to content

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

Closed

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

Activity

  1. added
    type-bugAn unexpected behavior, bug, or error
    buildThe build process and cross-build
    3.13only security fixes
    3.14bugs and security fixes
    on May 29, 2024
  2. erlend-aasland commented on May 29, 2024

    @erlend-aasland
    Contributor

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

    Gut reaction: yes

  3. added 3 commits that reference this issue on May 29, 2024
  4. added a commit that references this issue on May 30, 2024
  5. added a commit that references this issue on May 30, 2024
  6. added a commit that references this issue on Jul 11, 2024
  7. added a commit that references this issue on Jul 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    3.13only 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