Skip to content

Commit

Permalink
Build wheels with ffmpeg 7
Browse files Browse the repository at this point in the history
  • Loading branch information
WyattBlue committed Aug 4, 2024
1 parent a351a97 commit f5ec8ca
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 18 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/smoke.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,12 +34,12 @@ jobs:
fail-fast: false
matrix:
config:
- {os: ubuntu-latest, python: "3.9", ffmpeg: "6.1", extras: true}
# TODO: - {os: ubuntu-latest, python: "3.9", ffmpeg: "7.0"}
- {os: ubuntu-latest, python: "3.9", ffmpeg: "6.1.1", extras: true}
- {os: ubuntu-latest, python: "3.9", ffmpeg: "7.0.2"}
- {os: ubuntu-latest, python: "3.9", ffmpeg: "6.0"}
- {os: ubuntu-latest, python: pypy3.9, ffmpeg: "6.1"}
- {os: macos-12, python: "3.9", ffmpeg: "7.0"}
- {os: macos-12, python: "3.9", ffmpeg: "6.1"}
- {os: ubuntu-latest, python: pypy3.9, ffmpeg: "6.1.1"}
- {os: macos-12, python: "3.9", ffmpeg: "7.0.2"}
- {os: macos-12, python: "3.9", ffmpeg: "6.1.1"}

env:
PYAV_PYTHON: python${{ matrix.config.python }}
Expand Down
14 changes: 4 additions & 10 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,10 @@ jobs:
- uses: actions/setup-python@v5
with:
python-version: "3.9"
- name: Compile Time
run: python scripts/comptime.py 6.1
- name: Build source package
run: |
pip install cython
python scripts/fetch-vendor.py --config-file scripts/ffmpeg-6.1.json /tmp/vendor
python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.0.json /tmp/vendor
PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig python setup.py sdist
- name: Upload source package
uses: actions/upload-artifact@v4
Expand Down Expand Up @@ -55,21 +53,17 @@ jobs:
run: |
brew update
brew install pkg-config
- name: Anon1
- name: Set Minimum MacOS Target
if: matrix.os == 'macos-13' || matrix.os == 'macos-14'
run: |
echo "MACOSX_DEPLOYMENT_TARGET=10.13" >> $GITHUB_ENV
python scripts/comptime.py 7
- name: Anon2
if: matrix.os != 'macos-13' && matrix.os != 'macos-14'
run: python scripts/comptime.py 6.1
- name: Build wheels
env:
CIBW_ARCHS: ${{ matrix.arch }}
CIBW_BEFORE_ALL_LINUX: yum install -y alsa-lib libxcb
CIBW_BEFORE_BUILD: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-6.1.json /tmp/vendor
CIBW_BEFORE_BUILD: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.0.json /tmp/vendor
CIBW_BEFORE_BUILD_MACOS: python scripts/fetch-vendor.py --config-file scripts/ffmpeg-7.0.json /tmp/vendor
CIBW_BEFORE_BUILD_WINDOWS: python scripts\fetch-vendor.py --config-file scripts\ffmpeg-6.1.json C:\cibw\vendor
CIBW_BEFORE_BUILD_WINDOWS: python scripts\fetch-vendor.py --config-file scripts\ffmpeg-7.0.json C:\cibw\vendor
CIBW_ENVIRONMENT_LINUX: LD_LIBRARY_PATH=/tmp/vendor/lib:$LD_LIBRARY_PATH PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig
CIBW_ENVIRONMENT_MACOS: PKG_CONFIG_PATH=/tmp/vendor/lib/pkgconfig LDFLAGS=-headerpad_max_install_names
CIBW_ENVIRONMENT_WINDOWS: INCLUDE=C:\\cibw\\vendor\\include LIB=C:\\cibw\\vendor\\lib PYAV_SKIP_TESTS=unicode_filename
Expand Down
2 changes: 1 addition & 1 deletion scripts/activate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ if [[ ! "$PYAV_LIBRARY" ]]; then
return 1
fi
else
PYAV_LIBRARY=ffmpeg-7.0.1
PYAV_LIBRARY=ffmpeg-7.0.2
echo "No \$PYAV_LIBRARY set; defaulting to $PYAV_LIBRARY"
fi
fi
Expand Down
5 changes: 3 additions & 2 deletions scripts/build-deps
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@ cd $PYAV_LIBRARY
echo ./configure
./configure \
--disable-doc \
--disable-mmx \
--disable-optimizations \
--disable-static \
--disable-stripping \
--enable-debug=3 \
Expand All @@ -43,6 +41,9 @@ echo ./configure
--enable-libx264 \
--enable-libxml2 \
--enable-shared \
--enable-sse \
--enable-avx \
--enable-avx2 \
--prefix="$PYAV_LIBRARY_PREFIX" \
|| exit 2
echo
Expand Down

0 comments on commit f5ec8ca

Please sign in to comment.