diff --git a/.github/workflows/windows-python.yml b/.github/workflows/windows-python.yml index dfe4a48..f5cd20d 100644 --- a/.github/workflows/windows-python.yml +++ b/.github/workflows/windows-python.yml @@ -75,6 +75,11 @@ jobs: - name: Install python3 run: python3 -m pip install --user mypy-protobuf absl-py setuptools wheel numpy pandas + - name: Add Python binaries to path + run: > + echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" | + Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append + - name: Apply patch shell: bash @@ -82,19 +87,6 @@ jobs: cp -r patch/ortools patch/patch.py patch/patch_utils.py patch/cmake_patches . python patch.py - - name: Install SWIG 4.1.1 - run: | - (New-Object System.Net.WebClient).DownloadFile("http://prdownloads.sourceforge.net/swig/swigwin-4.1.1.zip","swigwin-4.1.1.zip"); - Expand-Archive .\swigwin-4.1.1.zip .; - echo "$((Get-Item .).FullName)/swigwin-4.1.1" | Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - Remove-Item .\swigwin-4.1.1.zip - - name: Check swig - run: swig -version - - name: Add Python binaries to path Windows - run: > - echo "$((Get-Item ~).FullName)/AppData/Roaming/Python/${{ matrix.python.dir }}/Scripts" | - Out-File -FilePath $env:GITHUB_PATH -Encoding utf8 -Append - - name: Set-up Xpress with pip shell: bash run: |