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 — Make 'sys.platform' return "freebsd" only on FreeBSD without major version · Issue #129393 · python/cpython

Make 'sys.platform' return "freebsd" only on FreeBSD without major version #129393

New issue
Copy link
New issue
Copy link
Closed
Closed
Make 'sys.platform' return "freebsd" only on FreeBSD without major version#129393
Copy link
Labels
OS-freebsdtype-featureA feature request or enhancementA feature request or enhancement

Description

@michael-o
michael-o
opened on Jan 28, 2025
Issue body actions

Feature or enhancement

Proposal:

When using using sys.platform and especially requirements.txt /pyproject.toml one cannot constrain dependencies to FreeBSD as whole, but need to deal with the suffixed major version. A change should follow suit all other cases to contain the platform name only without the major version.

Locally patched:

osipovmi@deblndw011x:~/var/Projekte/cpython (main *+>)
$ /tmp/python-3.13/bin/python3
Python 3.14.0a4+ (heads/main-dirty:8e57877e3f4, Jan 28 2025, 10:01:48) [Clang 19.1.5 (https://github.com/llvm/llvm-project.git llvmorg-19.1.5-0-gab4b5a on freebsd
Type "help", "copyright", "credits" or "license" for more information.
>>> import sys
>>> sys.platform
'freebsd'
>>>

A PR wll follow soon.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs

  • gh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD witho… #129394

Activity

  1. michael-o
    added
    type-featureA feature request or enhancementA feature request or enhancement
    on Jan 28, 2025
  2. michael-o
    added a commit that references this issue on Jan 28, 2025

    pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD…

    242840a
  3. encukou
    added
    OS-freebsd
    on Jan 28, 2025
  4. michael-o
    added 2 commits that reference this issue on Jan 28, 2025

    pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD…

    b9062bb

    pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD…

    0f19207
  5. vstinner
    added a commit that references this issue on Jan 31, 2025

    gh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD (#129394

    e3eba8c
  6. vstinner commented on Jan 31, 2025

    @vstinner
    vstinner
    on Jan 31, 2025
    Member
    More actions

    Implemented by the change e3eba8c.

    Reacted by Michael Osipov
  7. vstinner
    closed this as completedon Jan 31, 2025
  8. srinivasreddy
    added a commit that references this issue on Feb 7, 2025

    pythongh-129393: Make 'sys.platform' return "freebsd" only on FreeBSD (…

    fb9c825
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-freebsdtype-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.