This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Inconsistent registry virtualization in Windows Store package
Type: behavior Stage: resolved
Components: Windows Versions: Python 3.11, Python 3.10, Python 3.9
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: steve.dower Nosy List: miss-islington, paul.moore, steve.dower, tim.golden, zach.ware
Priority: normal Keywords: patch

Created on 2022-02-04 16:16 by steve.dower, last changed 2022-04-11 14:59 by admin. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 31130 merged steve.dower, 2022-02-04 18:04
PR 31199 merged miss-islington, 2022-02-07 16:59
PR 31200 merged miss-islington, 2022-02-07 16:59
Messages (6)
msg412513 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-04 16:16
The build of the Store package detects whether the build PC supports disabling registry virtualisation or not when deciding whether to add it to the manifest. Because our release builds just moved from the windows-2019 image to the windows-2022 image, this setting changed and now builds have virtualisation disabled.

While this is probably desirable for some users, having it happen without  warning is bad.

I'll check whether we can leave it unconditionally enabled for 3.11 and still install on older Windows versions. If it won't install, we'll just have to leave it disabled.
msg412517 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-04 16:51
Okay, so it doesn't install at all on 1803. However, that's out of support [1], so I guess it doesn't matter.

In theory, 1809 should be the first one that supports it. I'll try that, but I think we're okay to leave this turned on for 3.11.

The changes for 3.9-3.10 will be to disable the option unconditionally.

[1]: https://docs.microsoft.com/en-us/lifecycle/products/windows-10-home-and-pro
msg412522 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-04 18:13
Didn't work on 1809, but it does work on 20H2, which is the earliest update that will still be supported when 3.11 ships. I didn't try the ones in between, but I think we're okay to ignore them.

Interestingly, double-clicking the MSIX on Windows 11 refuses to install because of the unvirtualised resources, but on earlier Windows it's fine. The Powershell command (Add-AppxPackage <filename>) does work fine though. I'll see if I can find out what happened.
msg412770 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-07 17:00
New changeset 3a5afc14e16370c1f4f72d43cb553298ad9a1fa4 by Steve Dower in branch 'main':
bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130)
https://github.com/python/cpython/commit/3a5afc14e16370c1f4f72d43cb553298ad9a1fa4
msg412773 - (view) Author: miss-islington (miss-islington) Date: 2022-02-07 17:31
New changeset 9c45390208df712126c59f7c2b6f8d2b4e19ccf7 by Miss Islington (bot) in branch '3.10':
bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130)
https://github.com/python/cpython/commit/9c45390208df712126c59f7c2b6f8d2b4e19ccf7
msg412775 - (view) Author: Steve Dower (steve.dower) * (Python committer) Date: 2022-02-07 17:37
New changeset 76b072717a160c44cb8d54be3d5e878bc31f2c38 by Miss Islington (bot) in branch '3.9':
bpo-46638: Makes registry virtualisation setting stable when building MSIX packages (GH-31130)
https://github.com/python/cpython/commit/76b072717a160c44cb8d54be3d5e878bc31f2c38
History
Date User Action Args
2022-04-11 14:59:55adminsetgithub: 90796
2022-02-09 16:15:34steve.dowersetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2022-02-07 17:37:15steve.dowersetmessages: + msg412775
2022-02-07 17:31:47miss-islingtonsetmessages: + msg412773
2022-02-07 17:00:03steve.dowersetmessages: + msg412770
2022-02-07 16:59:55miss-islingtonsetpull_requests: + pull_request29371
2022-02-07 16:59:50miss-islingtonsetnosy: + miss-islington
pull_requests: + pull_request29370
2022-02-04 18:13:45steve.dowersetmessages: + msg412522
2022-02-04 18:05:54steve.dowersettitle: Inconsistent registry use in Windows Store package -> Inconsistent registry virtualization in Windows Store package
2022-02-04 18:04:16steve.dowersetkeywords: + patch
stage: needs patch -> patch review
pull_requests: + pull_request29309
2022-02-04 16:51:08steve.dowersetmessages: + msg412517
2022-02-04 16:16:10steve.dowercreate