← 输入框|github.com|刷新
Skip to content

Change Windows install to applocal UCRT #76688

Closed

Description

@zooba
BPO 32507
Nosy @pfmoore, @tjguk, @zware, @zooba
PRs
  • bpo-32507: Change Windows install to include app-local UCRT #5119
  • bpo-32507: Change Windows install to include app-local UCRT #5119
  • 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/zooba'
    closed_at = <Date 2018-01-09.08:16:36.363>
    created_at = <Date 2018-01-06.23:59:01.529>
    labels = ['3.8', 'type-feature', '3.7', 'OS-windows']
    title = 'Change Windows install to applocal UCRT'
    updated_at = <Date 2018-01-09.08:16:36.362>
    user = 'https://github.com/zooba'

    bugs.python.org fields:

    activity = <Date 2018-01-09.08:16:36.362>
    actor = 'steve.dower'
    assignee = 'steve.dower'
    closed = True
    closed_date = <Date 2018-01-09.08:16:36.363>
    closer = 'steve.dower'
    components = ['Windows']
    creation = <Date 2018-01-06.23:59:01.529>
    creator = 'steve.dower'
    dependencies = []
    files = []
    hgrepos = []
    issue_num = 32507
    keywords = ['patch', 'patch']
    message_count = 8.0
    messages = ['309589', '309609', '309614', '309635', '309640', '309653', '309688', '309689']
    nosy_count = 4.0
    nosy_names = ['paul.moore', 'tim.golden', 'zach.ware', 'steve.dower']
    pr_nums = ['5119', '5119']
    priority = 'normal'
    resolution = 'fixed'
    stage = 'resolved'
    status = 'closed'
    superseder = None
    type = 'enhancement'
    url = 'https://bugs.python.org/issue32507'
    versions = ['Python 3.7', 'Python 3.8']

    Activity

    1. zooba commented on Jan 6, 2018

      @zooba
      MemberAuthor

      There's enough instability due to using the proper UCRT installer (e.g. bpo-25546, bpo-25954, also others not reported on bpo) and good enough install base that we can simplify things by just installing it locally on machines that require it.

      This may also require updating venv (though I think we're fine) and virtualenv (I'll ping).

      My proposal is to bundle the UCRT redistributable DLLs into their own MSI and install them alongside the main executable when required. If a user later installs it properly, the up-to-date version will be used instead. This should be good enough to cover people still on Windows 7/8, and will also reduce the installer size slightly (though at the cost of potentially breaking non-standard virtual environments or entrypoint stubs that link to the CRT dynamically).

    2. added
      3.7 (EOL)
      3.8 (EOL)
      on Jan 6, 2018
    3. self-assigned this
      on Jan 6, 2018
    4. added
      type-feature
      on Jan 6, 2018
    5. zooba commented on Jan 7, 2018

      @zooba
      MemberAuthor

      The PR is ready, but I'll leave this open for a few days in case anyone wants to comment.

    6. pfmoore commented on Jan 7, 2018

      @pfmoore
      Member

      Does this mean that we'll need to update the bundled ucrt whenever there are security patches to the baseline version? Are we happy with the security implications of that?

      I thought one of the key advantages of using the system CRT (whether the old msvcrXX.dll or the new ucrt) was that we automatically received security patches.

    7. zooba commented on Jan 7, 2018

      @zooba
      MemberAuthor

      Technically yes, though I think at this stage it will be very few machines that end up with our copy, and users can patch their own system using Windows Update even if we've installed a copy. Particularly for our user base, where I suspect most pre-Win10 Python users will have installed 3.5 or 3.6 previously and so have the proper update.

      There should be very few first time Python users on older operating systems, and it will approach zero over time.

    8. pfmoore commented on Jan 7, 2018

      @pfmoore
      Member

      Oh, so we're talking here about bundling the ucrt installers and then if the user doesn't already have ucrt installed system wide, we will install a local copy, but if they do, we don't do anything? If we install a local copy, then it'll be used until the user installs a system copy, at which point the local copy remains but gets ignored, correct? That seems OK, although I can see a local copy that's not used being confusing - but it's for very few users so no real issue.

      I'm not sure what you're saying for venv/virtualenv though? Presumably they will need to copy the local copy if it's present, but that local copy will be ignored if there's a system copy?

    9. zooba commented on Jan 8, 2018

      @zooba
      MemberAuthor

      All correct. I believe venv is fine, as it copies all DLLs, but virtualenv is more selective and will need to be updated.

    10. zooba commented on Jan 9, 2018

      @zooba
      MemberAuthor

      New changeset d135f20 by Steve Dower in branch 'master':
      bpo-32507: Change Windows install to include app-local UCRT (bpo-5119)
      d135f20

    11. zooba commented on Jan 9, 2018

      @zooba
      MemberAuthor

      Missed the a4 cutoff, but it'll be in 3.7.0b1.

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

    3.7 (EOL)3.8 (EOL)OS-windowstype-feature

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions