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 — sysconfig.get_platform() on FreeBSD should not include patch level · Issue #159550 · python/cpython

sysconfig.get_platform() on FreeBSD should not include patch level #159550

New issue
Copy link
New issue
Copy link
Open
Open
sysconfig.get_platform() on FreeBSD should not include patch level#159550
Copy link
Labels
OS-freebsdstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

Description

@mohd-akram
mohd-akram
opened on Oct 16, 2026
Issue body actions

Bug report

Actual:

$ python3 -c 'import sysconfig; print(sysconfig.get_platform())'
freebsd-15.1-RELEASE-p4-amd64

Expected:

$ python3 -c 'import sysconfig; print(sysconfig.get_platform())'
freebsd-15.1-amd64

See for example the value from config.guess in autoconf:

$ ./config.guess
x86_64-unknown-freebsd15.1

CPython versions tested on:

3.16, 3.14

Operating systems tested on:

Other

Linked PRs

  • gh-159550: Fix FreeBSD version in get_platform() #159554

Activity

  1. mohd-akram
    added
    type-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error
    on Oct 16, 2026
  2. aisk
    added
    OS-freebsd
    stdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directory
    on Oct 16, 2026
  3. mohd-akram
    added 2 commits that reference this issue on Oct 16, 2026

    pythongh-159550: Fix FreeBSD version in get_platform()

    a952a3a

    pythongh-159550: Fix FreeBSD version in get_platform()

    d040bb6
  4. gvanrossum commented on Oct 16, 2026

    @gvanrossum
    gvanrossum
    on Oct 16, 2026
    Member
    More actions

    @mohd-akram
    Why don't you want it to reveal the patch level? That seems like a potentially useful piece of information (at least for a human).

  5. mohd-akram commented on Oct 16, 2026

    @mohd-akram
    mohd-akram
    on Oct 16, 2026
    Author
    More actions

    @gvanrossum This function is used by pip to determine the platform tag. Because it changes with every patch update, the wheels are deemed incompatible even though FreeBSD ABI is stable across patch levels. I noticed this issue because pip kept rebuilding certain Rust packages (which is very slow and resource intensive on a modest server) rather than obtaining them from the cache (because the name in the cache encoded the patch version). Someone had mentioned this issue previously on the FreeBSD mailing list. For humans, it is still available via os.uname() which is the source.

  6. gvanrossum commented on Oct 16, 2026

    @gvanrossum
    gvanrossum
    on Oct 16, 2026
    Member
    More actions

    Gotcha! And it looks like pip shouldn't be doing FreeBSD-specific editing of that string, I agree.

    Reacted by Mohamed Akram
  7. kevinprimeraquecreo-stack
    added this to Project_VKand Project_VKon Oct 18, 2026
  8. github-project-automation
    moved this to Todo in Project_VKon Oct 18, 2026
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

    OS-freebsdstdlibStandard Library Python modules in the Lib/ directoryStandard Library Python modules in the Lib/ directorytype-bugAn unexpected behavior, bug, or errorAn unexpected behavior, bug, or error

    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.