Skip to content

Commit

Permalink
winrt 1.0.20239.1 isn't available for python 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
dae committed Dec 23, 2020
1 parent 9f1bd14 commit 38614ab
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions pip/requirements.in
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ fluent-syntax
psutil; sys.platform == "win32"
pywin32; sys.platform == "win32"
# pinned due to https://github.com/microsoft/xlang/issues/717
# the latest version apparently works on python3.9
winrt==1.0.20239.1; sys.platform == "win32" and platform_release == "10"
winrt==1.0.20239.1; sys.platform == "win32" and platform_release == "10" and python_version == "3.8"
winrt; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"

# transitive windows dependencies
atomicwrites; sys.platform == "win32" # via pytest
Expand Down
7 changes: 5 additions & 2 deletions pip/requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,12 @@ typing-extensions==3.7.4.3 # via black, mypy
urllib3==1.26.2 # via requests
waitress==2.0.0b1 # via -r requirements.in
werkzeug==1.0.1 # via flask
winrt==1.0.20239.1 ; sys_platform == "win32" and platform_release == "10" # via -r requirements.in
winrt==1.0.20239.1 ; sys_platform == "win32" and platform_release == "10" and python_version == "3.8" # via -r requirements.in
wrapt==1.12.1 # via astroid

# The following packages are considered to be unsafe in a requirements file:
pip==20.3.3 # via pip-tools
setuptools==51.1.0.post20201221 # via jsonschema
setuptools==51.1.0 # via jsonschema

# manually added for now; ensure it and the earlier winrt are not removed on update
winrt==1.0.20330.1; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"
3 changes: 2 additions & 1 deletion qt/aqt/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,8 @@ py_wheel(
"pyqtwebengine",
'psutil; sys.platform == "win32"',
'pywin32; sys.platform == "win32"',
'winrt==1.0.20239.1 ; sys_platform == "win32" and platform_release == "10"',
'winrt==1.0.20239.1; sys.platform == "win32" and platform_release == "10" and python_version == "3.8"',
'winrt; sys.platform == "win32" and platform_release == "10" and python_version >= "3.9"',
"anki==" + anki_version,
],
strip_path_prefixes = [
Expand Down

0 comments on commit 38614ab

Please sign in to comment.