Publish Source Available licenses and remove Mutagen in YouTubeDL 1.4.7 / helper 1.3.3
This commit is contained in:
1 parent
71a808b298
commit
50457bc35b
27 files changed
+201
-58
No files matched your search
@@ -26,6 +26,8 @@ PYTHON_SHA256 = "90b4e5b9898b72d744650524bff92377c367f44bd5fbd09e3148656c080ad90
|
||||
NODE = "v24.21.0"
|
||||
FFMPEG_ARCHIVE = "ffmpeg-master-latest-win64-gpl-shared.zip"
|
||||
FFMPEG_SHA256 = "eb7afd4ecced72ab7d5d6fdd36dbc359173aa2daf6081817f7b678345898838b"
|
||||
sys.path.insert(0, str(ROOT))
|
||||
from host.python_packages import validate_installed
|
||||
|
||||
|
||||
def digest(path):
|
||||
@@ -107,10 +109,11 @@ def prepare():
|
||||
wheels = CACHE / "wheels"; wheels.mkdir(exist_ok=True)
|
||||
options = ["--platform", "win_amd64", "--python-version", "3.13", "--implementation", "cp",
|
||||
"--abi", "cp313", "--abi", "abi3", "--abi", "none", "--only-binary", ":all:"]
|
||||
requirement = "yt-dlp[default]==2026.8.19"
|
||||
subprocess.run([sys.executable, "-m", "pip", "download", "--disable-pip-version-check", "-d", str(wheels), *options, requirement], check=True)
|
||||
requirements = ["yt-dlp==2026.8.19", "yt-dlp-ejs==0.8.0", "brotli==1.2.0", "certifi==2026.7.22", "pycryptodomex==3.24.0", "requests==2.34.2", "urllib3==2.8.0", "websockets==17.2", "charset-normalizer==3.5.2", "idna==3.20"]
|
||||
subprocess.run([sys.executable, "-m", "pip", "download", "--disable-pip-version-check", "-d", str(wheels), *options, *requirements], check=True)
|
||||
subprocess.run([sys.executable, "-m", "pip", "install", "--disable-pip-version-check", "--no-index", "--find-links", str(wheels),
|
||||
"--target", str(python / "Lib" / "site-packages"), "--no-compile", "--ignore-requires-python", *options, requirement], check=True)
|
||||
"--target", str(python / "Lib" / "site-packages"), "--no-compile", "--ignore-requires-python", *options, *requirements], check=True)
|
||||
validate_installed(python / "Lib/site-packages")
|
||||
(licenses / "THIRD-PARTY.txt").write_text(
|
||||
"Python: https://www.python.org/ ; license: runtime/python/LICENSE.txt\n"
|
||||
"Node.js: https://nodejs.org/ ; license: Node-LICENSE.txt\n"
|
||||
@@ -130,6 +133,8 @@ def build():
|
||||
# pip's generated EXE launchers refer to the build interpreter. The helper
|
||||
# imports these libraries directly, so no console launchers are shipped.
|
||||
shutil.rmtree(scripts)
|
||||
validate_installed(KIT / "runtime/python/Lib/site-packages")
|
||||
shutil.copy2(ROOT / "LICENSE", KIT / "LICENSE")
|
||||
shutil.copytree(ROOT / "host", KIT / "host", dirs_exist_ok=True, ignore=shutil.ignore_patterns("__pycache__", "*.pyc"))
|
||||
sys.path.insert(0, str(ROOT))
|
||||
from host.common import VERSION
|
||||
|
||||
Reference in new issue
Block a user