python / python/cpython

Windows: improve compatibility to build for UWP / Xbox

Open
#152,433 5 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

build OS-windows type-feature
Dominant language
Python
Stars
77.2k
Forks
35.9k
PR merge metrics
PR metrics pending

Description

Feature or enhancement

Proposal:
  • Add alternative UWP API functionality when available.
  • Modernize the Windows code when there are alternatives that are also compatible with UWP.
  • Add additional guards for Windows code that not builds for UWP.

The final goal is able to build for Xbox and reduce the patches required in Kodi --> Upstream some generic UWP patches here.

I propose upload small patches geared towards specific targets and always keeping current Windows functionality untouched.

Has this already been discussed elsewhere?

No response given

Links to previous discussion of this feature:

No response

Linked PRs
  • gh-152383
  • gh-152473
  • gh-152477
  • gh-152479
  • gh-152601
  • gh-152604
  • gh-152688
  • gh-152689
  • gh-152694
  • gh-152791
  • gh-152792
  • gh-152793
  • gh-152797
  • gh-152962
  • gh-152998
  • gh-153021
  • gh-153036
  • gh-153216
  • gh-153700
  • gh-154642
  • gh-154700
  • gh-154918
  • gh-156972

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reviewing the linked PRs, especially the Windows and UWP-related changes, to see which parts of the proposal are already covered. Trace the Windows code paths affected by UWP API alternatives and build guards. Done means CPython can build for UWP/Xbox while preserving current Windows functionality and reducing downstream patches.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
build-system, operating-systems
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.