Skip to content

Commit f076dc8

Browse files
committed
Use ffmpeg 8.0.1-3
1 parent 17137ed commit f076dc8

File tree

4 files changed

+8
-19
lines changed

4 files changed

+8
-19
lines changed

scripts/fetch-vendor.py

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -9,25 +9,18 @@
99

1010
def get_platform():
1111
system = platform.system()
12-
machine = platform.machine()
12+
is_arm64 == platform.machine() in ("arm64", "aarch64")
1313
if system == "Linux":
1414
if platform.libc_ver()[0] == "glibc":
15-
return f"manylinux_{machine}"
15+
return "manylinux-aarch64" if is_arm64 else "manylinux-x86_64"
1616
else:
17-
return f"musllinux_{machine}"
17+
return "musllinux-aarch64" if is_arm64 else "musllinux-x86_64"
1818
elif system == "Darwin":
19-
# cibuildwheel sets ARCHFLAGS:
20-
# https://github.com/pypa/cibuildwheel/blob/5255155bc57eb6224354356df648dc42e31a0028/cibuildwheel/macos.py#L207-L220
21-
if "ARCHFLAGS" in os.environ:
22-
machine = os.environ["ARCHFLAGS"].split()[1]
23-
return f"macosx_{machine}"
19+
return "macos-arm64" if is_arm64 else "macos-x86_64"
2420
elif system == "Windows":
25-
if struct.calcsize("P") * 8 == 64:
26-
return "win_amd64"
27-
else:
28-
return "win32"
21+
return "windows-aarch64" if is_arm64 else "windows-x86_64"
2922
else:
30-
raise Exception(f"Unsupported system {system}")
23+
return "unknown"
3124

3225

3326
parser = argparse.ArgumentParser(description="Fetch and extract tarballs")
@@ -58,6 +51,5 @@ def get_platform():
5851
["curl", "--location", "--output", tarball_file, "--silent", tarball_url]
5952
)
6053

61-
# extract tarball
6254
logging.info(f"Extracting {tarball_name}")
6355
subprocess.check_call(["tar", "-C", args.destination_dir, "-xf", tarball_file])

scripts/ffmpeg-7.1.json

Lines changed: 0 additions & 3 deletions
This file was deleted.

scripts/ffmpeg-8.0.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/8.0.1-2/ffmpeg-{platform}.tar.gz"
2+
"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/8.0.1-3/ffmpeg-{platform}.tar.gz"
33
}

scripts/ffmpeg-latest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/8.0.1-2/ffmpeg-{platform}.tar.gz"
2+
"url": "https://github.com/PyAV-Org/pyav-ffmpeg/releases/download/8.0.1-3/ffmpeg-{platform}.tar.gz"
33
}

0 commit comments

Comments
 (0)