A feature-rich command-line audio/video downloader
[build] Use pycryptodomex for PyInstaller (#1179)
shirtf85e6be42ec5
diff --git a/.github/workflows/build.yml b/.github/workflows/build.ymlindex 4f983f2c10..324cf7eb65 100644--- a/.github/workflows/build.yml+++ b/.github/workflows/build.yml@@ -154,7 +154,7 @@ jobs:run: python -m pip install --upgrade pip setuptools wheel- name: Install Requirements# Custom pyinstaller built with https://github.com/yt-dlp/pyinstaller-builds- run: pip install "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-4.5.1-py3-none-any.whl" mutagen pycryptodome websockets+ run: pip install "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-4.5.1-py3-none-any.whl" mutagen pycryptodomex websockets- name: Bump versionid: bump_versionrun: python devscripts/update-version.py@@ -220,7 +220,7 @@ jobs:- name: Upgrade pip and enable wheel supportrun: python -m pip install --upgrade pip setuptools wheel- name: Install Requirements- run: pip install "https://yt-dlp.github.io/Pyinstaller-Builds/i686/pyinstaller-4.5.1-py3-none-any.whl" mutagen pycryptodome websockets+ run: pip install "https://yt-dlp.github.io/Pyinstaller-Builds/i686/pyinstaller-4.5.1-py3-none-any.whl" mutagen pycryptodomex websockets- name: Bump versionid: bump_versionrun: python devscripts/update-version.pydiff --git a/.github/workflows/quick-test.yml b/.github/workflows/quick-test.ymlindex 500a504a4a..bbad209b39 100644--- a/.github/workflows/quick-test.yml+++ b/.github/workflows/quick-test.yml@@ -12,7 +12,7 @@ jobs:with:python-version: 3.9- name: Install test requirements- run: pip install pytest pycryptodome+ run: pip install pytest pycryptodomex- name: Run testsrun: ./devscripts/run_tests.sh coreflake8:diff --git a/README.md b/README.mdindex d219b28d3b..cf46360a90 100644--- a/README.md+++ b/README.md@@ -207,7 +207,7 @@ While all the other dependancies are optional, `ffmpeg` and `ffprobe` are highlyTo use or redistribute the dependencies, you must agree to their respective licensing terms.-The windows releases are already built with the python interpreter, mutagen, pycryptodome and websockets included.+The windows releases are already built with the python interpreter, mutagen, pycryptodomex and websockets included.**Note**: There are some regressions in newer ffmpeg versions that causes various issues when used alongside yt-dlp. Since ffmpeg is such an important dependancy, we provide [custom builds](https://github.com/yt-dlp/FFmpeg-Builds/wiki/Latest#latest-autobuilds) with patches for these issues at [yt-dlp/FFmpeg-Builds](https://github.com/yt-dlp/FFmpeg-Builds). See [the readme](https://github.com/yt-dlp/FFmpeg-Builds#patches-applied) for details on the specifc issues solved by these builds@@ -215,9 +215,9 @@ The windows releases are already built with the python interpreter, mutagen, pyc### COMPILE**For Windows**:-To build the Windows executable, you must have pyinstaller (and optionally mutagen, pycryptodome, websockets)+To build the Windows executable, you must have pyinstaller (and optionally mutagen, pycryptodomex, websockets)- python3 -m pip install --upgrade pyinstaller mutagen pycryptodome websockets+ python3 -m pip install --upgrade pyinstaller mutagen pycryptodomex websocketsOnce you have all the necessary dependencies installed, just run `py pyinst.py`. The executable will be built for the same architecture (32/64 bit) as the python used to build it.diff --git a/pyinst.py b/pyinst.pyindex 7e040647c2..be1e00caae 100644--- a/pyinst.py+++ b/pyinst.py@@ -76,7 +76,7 @@ VERSION_FILE = VSVersionInfo(])-dependancies = ['Crypto', 'mutagen'] + collect_submodules('websockets')+dependancies = ['Cryptodome', 'mutagen'] + collect_submodules('websockets')excluded_modules = ['test', 'ytdlp_plugins', 'youtube-dl', 'youtube-dlc']PyInstaller.__main__.run([