GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Include "t" in ABI tag for `--disable-gil` builds · Issue #109740 · python/cpython

Include "t" in ABI tag for --disable-gil builds #109740

New issue
Copy link
New issue
Copy link
Closed
Closed
Include "t" in ABI tag for --disable-gil builds#109740
Copy link
Assignees
colesbury
Labels
3.13only security fixesonly security fixesbuildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement

Description

@colesbury
colesbury
opened on Sep 22, 2023
Issue body actions

Feature or enhancement

Context:

  • PEP 703 (Build Configuration Changes)
  • PEP 3149 – ABI version tagged .so files

The --disable-gil builds will have a different version specific ABI from the default CPython 3.13 builds due to reference counting differences and other changes. This should be indicated by a "t" (for "threading") in the ABI tag.

On POSIX, this is achieved by setting the ABIFLAGS variable, which feeds into the sysconfig EXT_SUFFIX and SOABI variables. The version specific shared libraries would look like:

  • package.cpython-313t-darwin.so

On Windows, this is achieved by setting PYD_TAGGED_SUFFIX, which feeds into the sysconfig EXT_SUFFIX. The shared libraries using the version specific ABI would look like:

  • _package.cp313t-win_amd64.pyd

Note that this does not address and is independent of the stable ABI. There's ongoing discussion about how best to support the stable ABI in --disable-gil builds.

cc @gpshead @brettcannon @vstinner

Linked PRs

  • gh-109740: Use 't' in --disable-gil SOABI #109922
Reacted by Gregory P. Smith
Reacted by stonebig

Activity

  1. colesbury
    added
    type-featureA feature request or enhancementA feature request or enhancement
    3.13only security fixesonly security fixes
    on Sep 22, 2023
  2. vstinner commented on Sep 22, 2023

    @vstinner
    vstinner
    on Sep 22, 2023
    Member
    More actions

    Yep, I'm fine with "t" tag. Try to write a test to ensure that if Python is built with NoGIL, the tag is present. Maybe added it in test_sys which can check sys.abiflags.

    Reacted by Sam Gross, Gregory P. Smith and Itamar Oren
  3. colesbury
    self-assigned this
    on Sep 22, 2023
  4. AA-Turner
    added
    buildThe build process and cross-buildThe build process and cross-build
    on Sep 22, 2023
  5. colesbury
    added 2 commits that reference this issue on Sep 26, 2023

    pythongh-109740: Use 't' in `--disable-gil` SOABI

    9890f14

    pythongh-109740: Use 't' in `--disable-gil` SOABI

    e745f32
  6. vstinner
    added a commit that references this issue on Sep 27, 2023

    gh-109740: Use 't' in `--disable-gil` SOABI (#109922)

    773614e
  7. csm10495
    added a commit that references this issue on Sep 28, 2023

    pythongh-109740: Use 't' in `--disable-gil` SOABI (python#109922)

    9e0dbb9
  8. colesbury commented on Oct 6, 2023

    @colesbury
    colesbury
    on Oct 6, 2023
    ContributorAuthor
    More actions

    This is implemented, although there are still some follow-up tasks.

  9. colesbury
    closed this as completedon Oct 6, 2023
  10. Glyphack
    added a commit that references this issue on Sep 2, 2024

    pythongh-109740: Use 't' in `--disable-gil` SOABI (python#109922)

    292ac4f
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @colesbury
    colesbury

Labels

3.13only security fixesonly security fixesbuildThe build process and cross-buildThe build process and cross-buildtype-featureA feature request or enhancementA feature request or enhancement

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402503 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.