Skip to content

Enable curses support on Windows #85796

Open

Description

@madebr
mannequin
BPO 41630
Nosy @pfmoore, @tjguk, @zware, @zooba, @madebr
PRs
  • bpo-41630: Build _curses and _curses_panel using Visual Studio. #21950
  • 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 = None
    created_at = <Date 2020-08-25.04:15:19.157>
    labels = ['3.10', 'type-feature', 'OS-windows', 'build']
    title = 'Enable curses support on Windows'
    updated_at = <Date 2020-08-25.17:05:55.513>
    user = 'https://github.com/madebr'

    bugs.python.org fields:

    activity = <Date 2020-08-25.17:05:55.513>
    actor = 'steve.dower'
    assignee = 'none'
    closed = False
    closed_date = None
    closer = None
    components = ['Build', 'Windows']
    creation = <Date 2020-08-25.04:15:19.157>
    creator = 'maarten'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41630
    keywords = ['patch']
    message_count = 2.0
    messages = ['375871', '375894']
    nosy_count = 5.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower', 'maarten']
    pr_nums = ['21950']
    priority = 'normal'
    resolution = None
    stage = 'patch review'
    status = 'open'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue41630'
    versions = ['Python 3.10']

    Linked PRs

    Activity

    1. madebr commented on Aug 25, 2020

      madebrmannequin
      MannequinAuthor

      When building python using Visual Studio, the curses and curses.module, are not getting built.

    2. added
      stdlibStandard Library Python modules in the Lib/ directory
      buildThe build process and cross-build
      on Aug 25, 2020
    3. added and removed
      stdlibStandard Library Python modules in the Lib/ directory
      on Aug 25, 2020
    4. zooba commented on Aug 25, 2020

      @zooba
      Member

      The curses module is currently not supported on Windows, and this patch is far more than just updating the VS build. I've updated the title.

      Refer to bpo-31951 for more context.

      This will need more work than what's been done in the pull request, as _curses is still not being built as part of normal build, and so is not being tested in CI.

    5. changed the title [-]Visual Studio does not build the curses and curses.panel module[/-] [+]Enable curses support on Windows[/+] on Aug 25, 2020
    6. transferred this issue fromon Apr 10, 2022
    7. erlend-aasland commented on May 6, 2024

      @erlend-aasland
      Contributor

      With the recently added Python REPL, we now have a use case for adding curses support on Windows.

    8. erlend-aasland commented on May 6, 2024

      @erlend-aasland
      Contributor
    9. serhiy-storchaka commented on Jul 30, 2026

      @serhiy-storchaka
      Member

      #154956 builds the two modules against PDCurses when PDCURSES_DIR points at a PDCursesMod checkout. It is opt-in, so a normal build is unchanged and CI still does not exercise them, as @zooba noted above — bundling the library and building it by default is a separate step, which this makes possible to test first.

      test_curses runs against PDCurses rather than skipping: 168 tests, 26 skipped, on Windows 11, and the same suite passes against PDCursesMod on Linux and FreeBSD in five build configurations.

    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

      Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions