Skip to content

Commit c5414c5

Browse files
add task to fix pywin32 issue (#7867)
1 parent 0829c4b commit c5414c5

2 files changed

Lines changed: 9 additions & 0 deletions

File tree

build/ci/templates/test_phases.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,14 @@ steps:
123123
displayName: 'pip install functional requirements'
124124
condition: and(succeeded(), eq(variables['NeedsPythonFunctionalReqs'], 'true'))
125125
126+
# Downgrade pywin32 on Windows due to bug https://github.com/jupyter/notebook/issues/4909
127+
#
128+
# This task will only run if variable `NeedsPythonFunctionalReqs` is true.
129+
- bash: |
130+
python -m pip install --upgrade pywin32==224
131+
displayName: 'Downgrade pywin32 on Windows / Python 3.6'
132+
condition: and(succeeded(), eq(variables['NeedsPythonFunctionalReqs'], 'true'), eq(variables['Agent.Os'], 'Windows_NT'), eq(variables['PythonVersion'], '3.6'))
133+
126134
# Install the requirements for ipython tests.
127135
#
128136
# This task will only run if variable `NeedsIPythonReqs` is true.

news/3 Code Health/7798.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
Add test step to get correct pywin32 installed with python 3.6 on windows.

0 commit comments

Comments
 (0)