Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 3 additions & 22 deletions .github/workflows/python-package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,6 @@ jobs:
- { os: ubuntu-24.04, shell: bash }
- { os: macos-15, shell: bash }
- { os: windows-2022, shell: pwsh }
- { os: windows-2022, shell: msys2, python-version: "mingw64" }
exclude:
- { os: macos-15, python-version: 3.9 }

Expand All @@ -145,21 +144,7 @@ jobs:
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
with:
submodules: "recursive"
- name: Set up MSYS2
if: matrix.python-version == 'mingw64'
uses: msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2
with:
msystem: mingw64
install: >-
mingw-w64-x86_64-python
mingw-w64-x86_64-python-pip
mingw-w64-x86_64-gcc
mingw-w64-x86_64-cmake
mingw-w64-x86_64-zlib
make
git
- name: Set up Python ${{ matrix.python-version }}
if: matrix.python-version != 'mingw64'
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
with:
python-version: ${{ matrix.python-version }}
Expand All @@ -169,22 +154,18 @@ jobs:
echo 'OTIO_CXX_DEBUG_BUILD=1' >> $GITHUB_ENV
sudo apt-get install lcov
- name: Install ZLIB (Linux)
if: runner.os == 'Linux' && matrix.python-version != 'mingw64'
if: runner.os == 'Linux'
run: sudo apt-get install -y zlib1g-dev
- name: Install ZLIB (Windows)
if: runner.os == 'Windows' && matrix.python-version != 'mingw64'
if: runner.os == 'Windows'
run: |
vcpkg install zlib:x64-windows
echo "CMAKE_PREFIX_PATH=C:/vcpkg/installed/x64-windows" >> $env:GITHUB_ENV
echo "C:/vcpkg/installed/x64-windows/bin" >> $env:GITHUB_PATH
- name: Install python build dependencies
run: |
python -m pip install --upgrade pip setuptools wheel "flake8>=3.5" check-manifest
# \todo Temporarily disable check-manifest on MinGW, it is failing
# intermittently with this error:
# ModuleNotFoundError: No module named 'pip._vendor.distlib'
- name: Run check-manifest and lint check
if: matrix.python-version != 'mingw64'
run: make ci-prebuild
- name: Build and Install
run: |
Expand All @@ -196,7 +177,7 @@ jobs:
# restricted DLL search checks.
# (In package_wheels, cibuildwheel does this via delvewheel.)
- name: Copy ZLIB DLL next to _otio.pyd (Windows)
if: runner.os == 'Windows' && matrix.python-version != 'mingw64'
if: runner.os == 'Windows'
run: |
$target = python -c "import sysconfig, os; print(os.path.join(sysconfig.get_paths()['purelib'], 'opentimelineio'))"
$sourceDir = "C:/vcpkg/installed/x64-windows/bin"
Expand Down
Loading