-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathlibs.patch
More file actions
38 lines (37 loc) · 1.6 KB
/
Copy pathlibs.patch
File metadata and controls
38 lines (37 loc) · 1.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
diff '--color=auto' -uNr PyAV-17.0.0/setup.py PyAV-17.0.0.mod/setup.py
--- PyAV-17.0.0/setup.py 2026-03-14 19:42:41.000000000 +0530
+++ PyAV-17.0.0.mod/setup.py 2026-05-22 08:21:47.438004827 +0530
@@ -79,20 +79,21 @@
"""
Get distutils-compatible extension arguments using pkg-config.
"""
- pkg_config = os.environ.get("PKG_CONFIG", "pkg-config")
- try:
- raw_cflags = subprocess.check_output(
- [pkg_config, "--cflags", "--libs"]
- + ["lib" + name for name in FFMPEG_LIBRARIES]
- )
- except FileNotFoundError:
- print(f"{pkg_config} is required for building PyAV")
- exit(1)
- except subprocess.CalledProcessError:
- print(f"{pkg_config} could not find libraries {FFMPEG_LIBRARIES}")
- exit(1)
+ # pkg_config = os.environ.get("PKG_CONFIG", "pkg-config")
+ # try:
+ # raw_cflags = subprocess.check_output(
+ # [pkg_config, "--cflags", "--libs"]
+ # + ["lib" + name for name in FFMPEG_LIBRARIES]
+ # )
+ # except FileNotFoundError:
+ # print(f"{pkg_config} is required for building PyAV")
+ # exit(1)
+ # except subprocess.CalledProcessError:
+ # print(f"{pkg_config} could not find libraries {FFMPEG_LIBRARIES}")
+ # exit(1)
- known, unknown = parse_cflags(raw_cflags.decode("utf-8"))
+ raw_cflags = "-lavdevice -lavfilter -lavformat -lavcodec -lswscale -lswresample -lavutil"
+ known, unknown = parse_cflags(raw_cflags)
if unknown:
print("pkg-config returned flags we don't understand: {}".format(unknown))
if "-pthread" in unknown: