Compare commits

...

4 Commits

Author SHA1 Message Date
bashonly
4552287374
Make bundle scripts executable
Authored by: bashonly
2024-01-15 16:57:25 -06:00
bashonly
3d6252b045
Add bundle to setuptools.packages.find.excludes
Authored by: bashonly
2024-01-15 16:38:45 -06:00
bashonly
ea9156650a
[docs] Fix COMPILE instructions in README.md
Authored by: bashonly
2024-01-15 16:03:08 -06:00
bashonly
91a7657aa3
[build] Make Windows Python calls uniform, again
Authored by: bashonly
2024-01-15 15:59:46 -06:00
5 changed files with 4 additions and 4 deletions

View File

@ -336,7 +336,7 @@ jobs:
run: | # Custom pyinstaller built with https://github.com/yt-dlp/pyinstaller-builds
python devscripts/install_deps.py -o --include build
python devscripts/install_deps.py --include py2exe
pip install -U "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-5.8.0-py3-none-any.whl"
python -m pip install -U "https://yt-dlp.github.io/Pyinstaller-Builds/x86_64/pyinstaller-5.8.0-py3-none-any.whl"
- name: Prepare
run: |

View File

@ -320,7 +320,7 @@ If you do not have the necessary dependencies for a task you are attempting, yt-
## COMPILE
### Standalone PyInstaller Builds
To build the standalone executable, you must have Python and `pyinstaller` (plus any of yt-dlp's [optional dependencies](#dependencies) if needed). The executable will be built for the same architecture (x86/ARM, 32/64 bit) as the Python used. Once you have all the necessary dependencies installed, you can run the following commands:
To build the standalone executable, you must have Python and `pyinstaller` (plus any of yt-dlp's [optional dependencies](#dependencies) if needed). The executable will be built for the same architecture (x86/ARM, 32/64 bit) as the Python used. You can run the following commands:
```
python3 devscripts/install_deps.py --include pyinstaller
@ -347,7 +347,7 @@ You can also run `make yt-dlp` instead to compile only the binary without updati
While we provide the option to build with [py2exe](https://www.py2exe.org), it is recommended to build [using PyInstaller](#standalone-pyinstaller-builds) instead since the py2exe builds **cannot contain `pycryptodomex`/`certifi` and needs VC++14** on the target computer to run.
If you wish to build it anyway, install Python and py2exe, you can run the following commands:
If you wish to build it anyway, install Python (if it is not already installed) and you can run the following commands:
```
py devscripts/install_deps.py --include py2exe

0
bundle/py2exe.py Normal file → Executable file
View File

0
bundle/pyinstaller.py Normal file → Executable file
View File

View File

@ -83,7 +83,7 @@ hook-dirs = "yt_dlp.__pyinstaller:get_hook_dirs"
[tool.setuptools.packages.find]
include = ["yt_dlp*"]
exclude = ["youtube_dl*", "youtube_dlc*", "test*", "ytdlp_plugins*", "devscripts*"]
exclude = ["youtube_dl*", "youtube_dlc*", "test*", "ytdlp_plugins*", "devscripts*", "bundle*"]
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
[tool.setuptools.dynamic]