Skip to content

platform.system_alias(): add macOS support #79697

Closed

Description

@vstinner
BPO 35516
Nosy @ronaldoussoren, @vstinner
PRs
  • bpo-35516: Add macOS support to platform.system_alias() #11187
  • bpo-35516: platform.system_alias() don't replace Darwin #11207
  • Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.

    Show more details

    GitHub fields:

    assignee = None
    closed_at = <Date 2018-12-18.18:51:54.956>
    created_at = <Date 2018-12-17.09:31:27.598>
    labels = ['3.8', 'library']
    title = 'platform.system_alias(): add macOS support'
    updated_at = <Date 2018-12-18.18:51:54.956>
    user = 'https://github.com/vstinner'

    bugs.python.org fields:

    activity = <Date 2018-12-18.18:51:54.956>
    actor = 'vstinner'
    assignee = 'none'
    closed = True
    closed_date = <Date 2018-12-18.18:51:54.956>
    closer = 'vstinner'
    components = ['Library (Lib)']
    creation = <Date 2018-12-17.09:31:27.598>
    creator = 'vstinner'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 35516
    keywords = ['patch']
    message_count = 6.0
    messages = ['331960', '331961', '331964', '331966', '332047', '332076']
    nosy_count = 2.0
    nosy_names = ['ronaldoussoren', 'vstinner']
    pr_nums = ['11187', '11207']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = None
    url = 'https://bugs.python.org/issue35516'
    versions = ['Python 3.8']

    Activity

    1. vstinner commented on Dec 17, 2018

      @vstinner
      MemberAuthor

      platform.system_alias() documentation:

      Returns (system, release, version) aliased to common marketing names used
      for some systems. It also does some reordering of the information in some cases
      where it would otherwise cause confusion.

      IMHO "macOS" and macOS release are more appropriate than darwin and darwin release for platform.system_alias().

      I propose to make a similar change in system_alias() than the platform.mac_ver() change made in bpo-35344.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      on Dec 17, 2018
    3. vstinner commented on Dec 17, 2018

      @vstinner
      MemberAuthor

      than the platform.mac_ver() change made in bpo-35344

      Oops, this issue changed platform.platform() (not platform.mac_ver()).

    4. ronaldoussoren commented on Dec 17, 2018

      @ronaldoussoren
      Contributor

      The patch does not use the version information passed in to calculate the marketing version. That's a problem when passing in low-level information from a system running a different version of macOS (for example passing in the low-level version information from a macOS 10.8 system while the script is running on a macOS 10.14 system).

    5. vstinner commented on Dec 17, 2018

      @vstinner
      MemberAuthor

      The patch does not use the version information passed in to calculate the marketing version. That's a problem when passing in low-level information from a system running a different version of macOS (for example passing in the low-level version information from a macOS 10.8 system while the script is running on a macOS 10.14 system).

      Right. The function has a weird API. Maybe the function shouldn't be fixed in this case. If we don't fix it, I would like to at least document why the function doesn't replace Darwin with macOS.

    6. vstinner commented on Dec 18, 2018

      @vstinner
      MemberAuthor

      Ronald Oussoren:

      The patch does not use the version information passed in to calculate the marketing version. That's a problem when passing in low-level information from a system running a different version of macOS (for example passing in the low-level version information from a macOS 10.8 system while the script is running on a macOS 10.14 system).

      I abandonned my PR 11187 and I wrote PR 11207 to add a comment explaining why Darwin is not replaced with macOS.

      Well, use platform.platform() or platform.mac_ver() to get the macOS version ;-)

    7. vstinner commented on Dec 18, 2018

      @vstinner
      MemberAuthor

      New changeset 60875db by Victor Stinner in branch 'master':
      bpo-35516: platform.system_alias() don't replace Darwin (GH-11207)
      60875db

    8. transferred this issue fromon Apr 10, 2022
    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.8 (EOL)end of lifestdlibStandard Library Python modules in the Lib/ directory

      Projects

      No projects

        Milestone

        No milestone

        Relationships

        None yet

        Development

        No branches or pull requests

        Issue actions