Skip to content

bdist_wininst doesn't execute postinstall script #85937

Closed

Description

@mhammond
BPO 41771
Nosy @mhammond, @vstinner
PRs
  • bpo-41771: Update how bdist_wininst loads Python so postinstall scripts again work. #22210
  • 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 = 'https://github.com/mhammond'
    closed_at = <Date 2021-01-11.12:50:19.975>
    created_at = <Date 2020-09-12.04:16:45.268>
    labels = ['type-bug', '3.8', '3.9', '3.10']
    title = "bdist_wininst doesn't execute postinstall script"
    updated_at = <Date 2021-01-11.12:50:19.973>
    user = 'https://github.com/mhammond'

    bugs.python.org fields:

    activity = <Date 2021-01-11.12:50:19.973>
    actor = 'vstinner'
    assignee = 'mhammond'
    closed = True
    closed_date = <Date 2021-01-11.12:50:19.975>
    closer = 'vstinner'
    components = []
    creation = <Date 2020-09-12.04:16:45.268>
    creator = 'mhammond'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 41771
    keywords = ['patch']
    message_count = 2.0
    messages = ['376771', '384813']
    nosy_count = 2.0
    nosy_names = ['mhammond', 'vstinner']
    pr_nums = ['22210']
    priority = 'normal'
    resolution = 'wont fix'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'behavior'
    url = 'https://bugs.python.org/issue41771'
    versions = ['Python 3.8', 'Python 3.9', 'Python 3.10']

    Activity

    1. mhammond commented on Sep 12, 2020

      @mhammond
      ContributorAuthor

      install.c tries to dynamically load PyCFunction_New at

      DECLPROC(hPython, PyObject *, PyCFunction_New, (PyMethodDef *, PyObject *));
      - however, since 3.8 this no longer exists - PyCFunction_New is a #define which calls PyCFunction_NewEx

    2. self-assigned this
      on Sep 12, 2020
    3. self-assigned this
      on Sep 12, 2020
    4. vstinner commented on Jan 11, 2021

      @vstinner
      Member

      The distutils bdist_wininst command has been removed in Python 3.10: see bpo-42802.

    5. 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

    Labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions