Github messages for voidlinux
 help / color / mirror / Atom feed
* [PR PATCH] yt-dlp: fix depends
@ 2023-03-08 19:29 icp1994
  2023-03-09  1:18 ` dmarto
                   ` (12 more replies)
  0 siblings, 13 replies; 14+ messages in thread
From: icp1994 @ 2023-03-08 19:29 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 465 bytes --]

There is a new pull request by icp1994 against master on the void-packages repository

https://github.com/icp1994/void-packages yt-dlp
https://github.com/void-linux/void-packages/pull/42661

yt-dlp: fix depends
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

A patch file from https://github.com/void-linux/void-packages/pull/42661.patch is attached

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-yt-dlp-42661.patch --]
[-- Type: text/x-diff, Size: 921 bytes --]

From 60b8e584c983c89845c07f6d1afbb8edb960e68f Mon Sep 17 00:00:00 2001
From: icp <pangolin@vivaldi.net>
Date: Thu, 9 Mar 2023 00:55:13 +0530
Subject: [PATCH] yt-dlp: fix depends

---
 srcpkgs/yt-dlp/template | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/srcpkgs/yt-dlp/template b/srcpkgs/yt-dlp/template
index a13631631169..3c349c2047b4 100644
--- a/srcpkgs/yt-dlp/template
+++ b/srcpkgs/yt-dlp/template
@@ -1,11 +1,12 @@
 # Template file for 'yt-dlp'
 pkgname=yt-dlp
 version=2023.03.04
-revision=1
+revision=2
 build_style=python3-module
 make_check_args="-k not(download)"
 hostmakedepends="python3-setuptools"
-depends="python3"
+depends="python3-mutagen python3-pycryptodomex python3-websockets python3-Brotli
+ python3-certifi"
 checkdepends="python3-pytest-xdist"
 short_desc="CLI program to download videos from YouTube and other sites"
 maintainer="Michal Vasilek <michal@vasilek.cz>"

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
@ 2023-03-09  1:18 ` dmarto
  2023-03-09  1:21 ` dmarto
                   ` (11 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09  1:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 437 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1461117913

Comment:
```
Python versions 3.7+ (CPython and PyPy) are supported. Other versions and implementations may or may not work correctly.

While all the other dependencies are optional, ffmpeg and ffprobe are highly recommended
```

From [their README](https://github.com/yt-dlp/yt-dlp#dependencies)



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
  2023-03-09  1:18 ` dmarto
@ 2023-03-09  1:21 ` dmarto
  2023-03-09  5:32 ` icp1994
                   ` (10 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09  1:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 584 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1461117913

Comment:
```
Python versions 3.7+ (CPython and PyPy) are supported. Other versions and implementations may or may not work correctly.

While all the other dependencies are optional, ffmpeg and ffprobe are highly recommended
```

From [their README](https://github.com/yt-dlp/yt-dlp#dependencies)


edit: And based on my understanding of the xbps-src Manual, they shouldn't be added and forced on all users. (as `yt-dlp` is usable without them)

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
  2023-03-09  1:18 ` dmarto
  2023-03-09  1:21 ` dmarto
@ 2023-03-09  5:32 ` icp1994
  2023-03-09 10:18 ` dmarto
                   ` (9 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: icp1994 @ 2023-03-09  5:32 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 743 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1461312625

Comment:
That's fair but as you can see upstream implicitly [enforces](https://github.com/yt-dlp/yt-dlp/blob/2023.03.04/setup.py#L146) these [dependencies](https://github.com/yt-dlp/yt-dlp/blob/2023.03.04/setup.py#L30). You can check it by looking at `/usr/lib/python3.11/site-packages/yt_dlp-2023.3.4-py3.11.egg-info/requires.txt`.

Also from their README
> The standalone release binaries are built with the Python interpreter and the packages marked with * included.

so I guess we have to patch it ourselves if we want a dependency-free installation like [gentoo](https://bugs.gentoo.org/828466) does.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (2 preceding siblings ...)
  2023-03-09  5:32 ` icp1994
@ 2023-03-09 10:18 ` dmarto
  2023-03-09 20:16 ` icp1994
                   ` (8 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 10:18 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 1311 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1461735481

Comment:
I am not sure what you mean as I have `yt-dlp` and none of the python dependencies, I only have `ffmpeg` and `no_Cryptodome-None, sqlite3-2.6.0`; not sure with all the no/none in the version info, but cryptodome, I think, is the only bundled thing `/usr/lib/python3.11/site-packages/yt_dlp/dependencies/Cryptodome.py` as I don't have anything other by that name on my system. 


yt-dlp --verbose
```
[debug] Command-line config: ['--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d]
[debug] Python 3.11.2 (CPython x86_64 64bit) - Linux-6.1.12_1-x86_64-with-glibc2.36 (OpenSSL 1.1.1t  7 Feb 2023, glibc 2.36)
[debug] exe versions: ffmpeg 4.4.3 (setts), ffprobe 4.4.3
[debug] Optional libraries: no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {'no': 'localhost,127.0.0.0/8,::1'}
[debug] Loaded 1786 extractors
```

p.s. I often use yt-dlp but only for simple video+audio download. So not sure where this optional dependencies are needed, but `yt-dlp` documentation claims that if they are needed your receive a warning and I have never seen one. 

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (3 preceding siblings ...)
  2023-03-09 10:18 ` dmarto
@ 2023-03-09 20:16 ` icp1994
  2023-03-09 21:10 ` dmarto
                   ` (7 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: icp1994 @ 2023-03-09 20:16 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 222 bytes --]

New comment by icp1994 on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462709469

Comment:
What are the outputs of `xbps-query -x yt-dlp` and `pip3 check` in your machine?

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (4 preceding siblings ...)
  2023-03-09 20:16 ` icp1994
@ 2023-03-09 21:10 ` dmarto
  2023-03-09 21:14 ` dmarto
                   ` (6 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 21:10 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 319 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462829625

Comment:
```
$ xbps-query -x yt-dlp
python3>=0
```

and I don't have pip installed (or other global packet mangers), all global stuff is left to xbps (around 40 python3-* pkgs)




^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (5 preceding siblings ...)
  2023-03-09 21:10 ` dmarto
@ 2023-03-09 21:14 ` dmarto
  2023-03-09 21:19 ` dmarto
                   ` (5 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 21:14 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4151 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462829625

Comment:
```
$ xbps-query -x yt-dlp
python3>=0
```

and I don't have pip installed (or other global packet mangers), all global stuff is left to xbps (around 40 python3-* pkgs)

<details>
<summary>

```$ xbps-query -s python```

</summary>

```
[*] autopep8-2.0.2_1                   Automatically formats Python code to conform to the PEP 8 style guide
[*] imath-3.1.6_1                      C++/Python library for 2D/3D vector/matrix/math operations
[*] python3-3.11.2_1                   Python programming language (3.11 series)
[*] python3-Pillow-9.4.0_1             Python Imaging Library (PIL) for for Python3
[*] python3-PyQt5-5.15.9_1             Python 3 bindings for the Qt5 toolkit
[*] python3-PyQt5-svg-5.15.9_1         Python 3 bindings for the Qt5 toolkit - svg module
[*] python3-PyQt5-webchannel-5.15.9_1  Python 3 bindings for the Qt5 toolkit - webchannel module
[*] python3-PyQt5-webengine-5.15.6_2   Python 3 bindings for the Qt5 toolkit - webengine module
[*] python3-appdirs-1.4.4_5            Python3 module for determining appropriate platform-specific dirs
[*] python3-cairo-1.20.1_5             Python3 bindings for the cairo graphics library
[*] python3-charset-normalizer-3.0.1_1 Encoding and language detection
[*] python3-colorama-0.4.5_2           Cross-platform colored terminal text (Python3)
[*] python3-colour-0.1.5_1             Python library, converts and manipulates various color representation
[*] python3-cssselect-1.1.0_7          CSS selectors for Python3
[*] python3-daemonize-2.5.0_7          Daemonize is a library for writing system daemons in Python (Python3)
[*] python3-dbus-1.2.18_3              D-Bus Python3 bindings
[*] python3-devel-3.11.2_1             Python programming language (3.11 series) - development files
[*] python3-distro-1.7.0_2             OS platform information API
[*] python3-gobject-3.42.2_2           Python3 bindings for GObject
[*] python3-idna-3.4_2                 Internationalized Domain Names in Applications (IDNA) for Python3
[*] python3-inotify-0.9.6_8            Monitoring filesystems events with inotify on Linux (Python3)
[*] python3-lxml-4.9.2_1               Python binding for the libxml2 and libxslt libraries
[*] python3-mutagen-1.46.0_2           Python3 multimedia tagging library
[*] python3-numpy-1.24.2_1             Fast and sophisticated array facility to Python3
[*] python3-openrazer-3.5.1_1          Python library for accessing the Razer daemon from Python
[*] python3-pam-1.8.4_7                Python3 module for PAM authentication
[*] python3-pexpect-4.8.0_3            Python3 module for spawning child applications and controlling them
[*] python3-psutil-5.9.4_1             Cross-platform process and system utilities module for Python3
[*] python3-ptyprocess-0.7.0_3         Run a subprocess in a pseudo terminal (Python3)
[*] python3-pycodestyle-2.10.0_1       Python style guide checker (formerly called pep8)
[*] python3-pytz-2022.7.1_1            Python3 timezone library
[*] python3-pyudev-0.24.0_1            Python bindings to libudev (Python3)
[*] python3-requests-2.28.2_1          Python3 HTTP library for human beings
[*] python3-scour-0.38.2_3             SVG scrubber (Python3)
[*] python3-setproctitle-1.2.1_3       Python3 library to allow customization of the process title
[*] python3-setuptools-67.6.0_1        Easily build and distribute Python3 packages
[*] python3-sip-PyQt5-12.11.1_1        Python 3 PyQt5 SIP bindings with C and C++
[*] python3-six-1.16.0_3               Python 2 and 3 compatibility utilities (Python3)
[*] python3-tinycss-0.4_5              Complete yet simple CSS parser for Python
[*] python3-tkinter-3.11.2_1           Python programming language - GUI toolkit for Python3
[*] python3-toml-0.10.2_3              Python3 library for TOML
[*] python3-urllib3-1.26.12_1          HTTP library with thread-safe connection pooling
[*] python3-xapp-2.2.2_2               Python3 Xapp Library
```
</details>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (6 preceding siblings ...)
  2023-03-09 21:14 ` dmarto
@ 2023-03-09 21:19 ` dmarto
  2023-03-09 22:21 ` dmarto
                   ` (4 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 21:19 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4152 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462829625

Comment:
```
$ xbps-query -x yt-dlp
python3>=0
```

and I don't have pip installed (or other global packet managers), all global stuff is left to xbps (around 40 python3-* pkgs)

<details>
<summary>

```$ xbps-query -s python```

</summary>

```
[*] autopep8-2.0.2_1                   Automatically formats Python code to conform to the PEP 8 style guide
[*] imath-3.1.6_1                      C++/Python library for 2D/3D vector/matrix/math operations
[*] python3-3.11.2_1                   Python programming language (3.11 series)
[*] python3-Pillow-9.4.0_1             Python Imaging Library (PIL) for for Python3
[*] python3-PyQt5-5.15.9_1             Python 3 bindings for the Qt5 toolkit
[*] python3-PyQt5-svg-5.15.9_1         Python 3 bindings for the Qt5 toolkit - svg module
[*] python3-PyQt5-webchannel-5.15.9_1  Python 3 bindings for the Qt5 toolkit - webchannel module
[*] python3-PyQt5-webengine-5.15.6_2   Python 3 bindings for the Qt5 toolkit - webengine module
[*] python3-appdirs-1.4.4_5            Python3 module for determining appropriate platform-specific dirs
[*] python3-cairo-1.20.1_5             Python3 bindings for the cairo graphics library
[*] python3-charset-normalizer-3.0.1_1 Encoding and language detection
[*] python3-colorama-0.4.5_2           Cross-platform colored terminal text (Python3)
[*] python3-colour-0.1.5_1             Python library, converts and manipulates various color representation
[*] python3-cssselect-1.1.0_7          CSS selectors for Python3
[*] python3-daemonize-2.5.0_7          Daemonize is a library for writing system daemons in Python (Python3)
[*] python3-dbus-1.2.18_3              D-Bus Python3 bindings
[*] python3-devel-3.11.2_1             Python programming language (3.11 series) - development files
[*] python3-distro-1.7.0_2             OS platform information API
[*] python3-gobject-3.42.2_2           Python3 bindings for GObject
[*] python3-idna-3.4_2                 Internationalized Domain Names in Applications (IDNA) for Python3
[*] python3-inotify-0.9.6_8            Monitoring filesystems events with inotify on Linux (Python3)
[*] python3-lxml-4.9.2_1               Python binding for the libxml2 and libxslt libraries
[*] python3-mutagen-1.46.0_2           Python3 multimedia tagging library
[*] python3-numpy-1.24.2_1             Fast and sophisticated array facility to Python3
[*] python3-openrazer-3.5.1_1          Python library for accessing the Razer daemon from Python
[*] python3-pam-1.8.4_7                Python3 module for PAM authentication
[*] python3-pexpect-4.8.0_3            Python3 module for spawning child applications and controlling them
[*] python3-psutil-5.9.4_1             Cross-platform process and system utilities module for Python3
[*] python3-ptyprocess-0.7.0_3         Run a subprocess in a pseudo terminal (Python3)
[*] python3-pycodestyle-2.10.0_1       Python style guide checker (formerly called pep8)
[*] python3-pytz-2022.7.1_1            Python3 timezone library
[*] python3-pyudev-0.24.0_1            Python bindings to libudev (Python3)
[*] python3-requests-2.28.2_1          Python3 HTTP library for human beings
[*] python3-scour-0.38.2_3             SVG scrubber (Python3)
[*] python3-setproctitle-1.2.1_3       Python3 library to allow customization of the process title
[*] python3-setuptools-67.6.0_1        Easily build and distribute Python3 packages
[*] python3-sip-PyQt5-12.11.1_1        Python 3 PyQt5 SIP bindings with C and C++
[*] python3-six-1.16.0_3               Python 2 and 3 compatibility utilities (Python3)
[*] python3-tinycss-0.4_5              Complete yet simple CSS parser for Python
[*] python3-tkinter-3.11.2_1           Python programming language - GUI toolkit for Python3
[*] python3-toml-0.10.2_3              Python3 library for TOML
[*] python3-urllib3-1.26.12_1          HTTP library with thread-safe connection pooling
[*] python3-xapp-2.2.2_2               Python3 Xapp Library
```
</details>


^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (7 preceding siblings ...)
  2023-03-09 21:19 ` dmarto
@ 2023-03-09 22:21 ` dmarto
  2023-03-09 22:23 ` dmarto
                   ` (3 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 22:21 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4414 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462829625

Comment:
```
$ xbps-query -x yt-dlp
python3>=0
```

and I don't have pip installed (or other global packet managers), all global stuff is left to xbps (around 40 python3-* pkgs)

<details>
<summary>

```$ xbps-query -s python```

</summary>

```
[*] autopep8-2.0.2_1                   Automatically formats Python code to conform to the PEP 8 style guide
[*] imath-3.1.6_1                      C++/Python library for 2D/3D vector/matrix/math operations
[*] python3-3.11.2_1                   Python programming language (3.11 series)
[*] python3-Pillow-9.4.0_1             Python Imaging Library (PIL) for for Python3
[*] python3-PyQt5-5.15.9_1             Python 3 bindings for the Qt5 toolkit
[*] python3-PyQt5-svg-5.15.9_1         Python 3 bindings for the Qt5 toolkit - svg module
[*] python3-PyQt5-webchannel-5.15.9_1  Python 3 bindings for the Qt5 toolkit - webchannel module
[*] python3-PyQt5-webengine-5.15.6_2   Python 3 bindings for the Qt5 toolkit - webengine module
[*] python3-appdirs-1.4.4_5            Python3 module for determining appropriate platform-specific dirs
[*] python3-cairo-1.20.1_5             Python3 bindings for the cairo graphics library
[*] python3-charset-normalizer-3.0.1_1 Encoding and language detection
[*] python3-colorama-0.4.5_2           Cross-platform colored terminal text (Python3)
[*] python3-colour-0.1.5_1             Python library, converts and manipulates various color representation
[*] python3-cssselect-1.1.0_7          CSS selectors for Python3
[*] python3-daemonize-2.5.0_7          Daemonize is a library for writing system daemons in Python (Python3)
[*] python3-dbus-1.2.18_3              D-Bus Python3 bindings
[*] python3-devel-3.11.2_1             Python programming language (3.11 series) - development files
[*] python3-distro-1.7.0_2             OS platform information API
[*] python3-gobject-3.42.2_2           Python3 bindings for GObject
[*] python3-idna-3.4_2                 Internationalized Domain Names in Applications (IDNA) for Python3
[*] python3-inotify-0.9.6_8            Monitoring filesystems events with inotify on Linux (Python3)
[*] python3-lxml-4.9.2_1               Python binding for the libxml2 and libxslt libraries
[*] python3-mutagen-1.46.0_2           Python3 multimedia tagging library
[*] python3-numpy-1.24.2_1             Fast and sophisticated array facility to Python3
[*] python3-openrazer-3.5.1_1          Python library for accessing the Razer daemon from Python
[*] python3-pam-1.8.4_7                Python3 module for PAM authentication
[*] python3-pexpect-4.8.0_3            Python3 module for spawning child applications and controlling them
[*] python3-psutil-5.9.4_1             Cross-platform process and system utilities module for Python3
[*] python3-ptyprocess-0.7.0_3         Run a subprocess in a pseudo terminal (Python3)
[*] python3-pycodestyle-2.10.0_1       Python style guide checker (formerly called pep8)
[*] python3-pytz-2022.7.1_1            Python3 timezone library
[*] python3-pyudev-0.24.0_1            Python bindings to libudev (Python3)
[*] python3-requests-2.28.2_1          Python3 HTTP library for human beings
[*] python3-scour-0.38.2_3             SVG scrubber (Python3)
[*] python3-setproctitle-1.2.1_3       Python3 library to allow customization of the process title
[*] python3-setuptools-67.6.0_1        Easily build and distribute Python3 packages
[*] python3-sip-PyQt5-12.11.1_1        Python 3 PyQt5 SIP bindings with C and C++
[*] python3-six-1.16.0_3               Python 2 and 3 compatibility utilities (Python3)
[*] python3-tinycss-0.4_5              Complete yet simple CSS parser for Python
[*] python3-tkinter-3.11.2_1           Python programming language - GUI toolkit for Python3
[*] python3-toml-0.10.2_3              Python3 library for TOML
[*] python3-urllib3-1.26.12_1          HTTP library with thread-safe connection pooling
[*] python3-xapp-2.2.2_2               Python3 Xapp Library
```
</details>

edit: I forgot to mention, that I installed `python3-mutagen`, just to test and confirm that `yt-dlp --verbose` detects and shows libraries correctly; excluding it the only manual pkgs from the above list are `autopep8`, `python3-devel`, `python3-tkinter`.



^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (8 preceding siblings ...)
  2023-03-09 22:21 ` dmarto
@ 2023-03-09 22:23 ` dmarto
  2023-03-09 23:25 ` dmarto
                   ` (2 subsequent siblings)
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 22:23 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 4968 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462829625

Comment:
```
$ xbps-query -x yt-dlp
python3>=0
```

and I don't have `pip` installed (or other global packet managers), all global stuff is left to xbps (around 40 python3-* pkgs)

<details>
<summary>

```$ xbps-query -s python```

</summary>

```
[*] autopep8-2.0.2_1                   Automatically formats Python code to conform to the PEP 8 style guide
[*] imath-3.1.6_1                      C++/Python library for 2D/3D vector/matrix/math operations
[*] python3-3.11.2_1                   Python programming language (3.11 series)
[*] python3-Pillow-9.4.0_1             Python Imaging Library (PIL) for for Python3
[*] python3-PyQt5-5.15.9_1             Python 3 bindings for the Qt5 toolkit
[*] python3-PyQt5-svg-5.15.9_1         Python 3 bindings for the Qt5 toolkit - svg module
[*] python3-PyQt5-webchannel-5.15.9_1  Python 3 bindings for the Qt5 toolkit - webchannel module
[*] python3-PyQt5-webengine-5.15.6_2   Python 3 bindings for the Qt5 toolkit - webengine module
[*] python3-appdirs-1.4.4_5            Python3 module for determining appropriate platform-specific dirs
[*] python3-cairo-1.20.1_5             Python3 bindings for the cairo graphics library
[*] python3-charset-normalizer-3.0.1_1 Encoding and language detection
[*] python3-colorama-0.4.5_2           Cross-platform colored terminal text (Python3)
[*] python3-colour-0.1.5_1             Python library, converts and manipulates various color representation
[*] python3-cssselect-1.1.0_7          CSS selectors for Python3
[*] python3-daemonize-2.5.0_7          Daemonize is a library for writing system daemons in Python (Python3)
[*] python3-dbus-1.2.18_3              D-Bus Python3 bindings
[*] python3-devel-3.11.2_1             Python programming language (3.11 series) - development files
[*] python3-distro-1.7.0_2             OS platform information API
[*] python3-gobject-3.42.2_2           Python3 bindings for GObject
[*] python3-idna-3.4_2                 Internationalized Domain Names in Applications (IDNA) for Python3
[*] python3-inotify-0.9.6_8            Monitoring filesystems events with inotify on Linux (Python3)
[*] python3-lxml-4.9.2_1               Python binding for the libxml2 and libxslt libraries
[*] python3-mutagen-1.46.0_2           Python3 multimedia tagging library
[*] python3-numpy-1.24.2_1             Fast and sophisticated array facility to Python3
[*] python3-openrazer-3.5.1_1          Python library for accessing the Razer daemon from Python
[*] python3-pam-1.8.4_7                Python3 module for PAM authentication
[*] python3-pexpect-4.8.0_3            Python3 module for spawning child applications and controlling them
[*] python3-psutil-5.9.4_1             Cross-platform process and system utilities module for Python3
[*] python3-ptyprocess-0.7.0_3         Run a subprocess in a pseudo terminal (Python3)
[*] python3-pycodestyle-2.10.0_1       Python style guide checker (formerly called pep8)
[*] python3-pytz-2022.7.1_1            Python3 timezone library
[*] python3-pyudev-0.24.0_1            Python bindings to libudev (Python3)
[*] python3-requests-2.28.2_1          Python3 HTTP library for human beings
[*] python3-scour-0.38.2_3             SVG scrubber (Python3)
[*] python3-setproctitle-1.2.1_3       Python3 library to allow customization of the process title
[*] python3-setuptools-67.6.0_1        Easily build and distribute Python3 packages
[*] python3-sip-PyQt5-12.11.1_1        Python 3 PyQt5 SIP bindings with C and C++
[*] python3-six-1.16.0_3               Python 2 and 3 compatibility utilities (Python3)
[*] python3-tinycss-0.4_5              Complete yet simple CSS parser for Python
[*] python3-tkinter-3.11.2_1           Python programming language - GUI toolkit for Python3
[*] python3-toml-0.10.2_3              Python3 library for TOML
[*] python3-urllib3-1.26.12_1          HTTP library with thread-safe connection pooling
[*] python3-xapp-2.2.2_2               Python3 Xapp Library
```
</details>

edit: I forgot to mention, that I installed `python3-mutagen`, just to test and confirm that `yt-dlp --verbose` detects and shows libraries correctly. (excluding it the only manual pkgs from the above list are `autopep8`, `python3-devel`, `python3-tkinter`)

```
[debug] Command-line config: ['--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d]
[debug] Python 3.11.2 (CPython x86_64 64bit) - Linux-6.1.12_1-x86_64-with-glibc2.36 (OpenSSL 1.1.1t  7 Feb 2023, glibc 2.36)
[debug] exe versions: ffmpeg 4.4.3 (setts), ffprobe 4.4.3
[debug] Optional libraries: mutagen-1.46.0, no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {'no': 'localhost,127.0.0.0/8,::1'}
[debug] Loaded 1786 extractors
```

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (9 preceding siblings ...)
  2023-03-09 22:23 ` dmarto
@ 2023-03-09 23:25 ` dmarto
  2023-03-10 20:01 ` paper42
  2023-03-10 20:02 ` [PR PATCH] [Closed]: " paper42
  12 siblings, 0 replies; 14+ messages in thread
From: dmarto @ 2023-03-09 23:25 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 7491 bytes --]

New comment by dmarto on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1462829625

Comment:
```
$ xbps-query -x yt-dlp
python3>=0
```

and I don't have `pip` installed (or other global packet managers), all global stuff is left to xbps (around 40 python3-* pkgs)

```$ xbps-query -s python```
<details>
<summary>
click for output
</summary>

```
[*] autopep8-2.0.2_1                   Automatically formats Python code to conform to the PEP 8 style guide
[*] imath-3.1.6_1                      C++/Python library for 2D/3D vector/matrix/math operations
[*] python3-3.11.2_1                   Python programming language (3.11 series)
[*] python3-Pillow-9.4.0_1             Python Imaging Library (PIL) for for Python3
[*] python3-PyQt5-5.15.9_1             Python 3 bindings for the Qt5 toolkit
[*] python3-PyQt5-svg-5.15.9_1         Python 3 bindings for the Qt5 toolkit - svg module
[*] python3-PyQt5-webchannel-5.15.9_1  Python 3 bindings for the Qt5 toolkit - webchannel module
[*] python3-PyQt5-webengine-5.15.6_2   Python 3 bindings for the Qt5 toolkit - webengine module
[*] python3-appdirs-1.4.4_5            Python3 module for determining appropriate platform-specific dirs
[*] python3-cairo-1.20.1_5             Python3 bindings for the cairo graphics library
[*] python3-charset-normalizer-3.0.1_1 Encoding and language detection
[*] python3-colorama-0.4.5_2           Cross-platform colored terminal text (Python3)
[*] python3-colour-0.1.5_1             Python library, converts and manipulates various color representation
[*] python3-cssselect-1.1.0_7          CSS selectors for Python3
[*] python3-daemonize-2.5.0_7          Daemonize is a library for writing system daemons in Python (Python3)
[*] python3-dbus-1.2.18_3              D-Bus Python3 bindings
[*] python3-devel-3.11.2_1             Python programming language (3.11 series) - development files
[*] python3-distro-1.7.0_2             OS platform information API
[*] python3-gobject-3.42.2_2           Python3 bindings for GObject
[*] python3-idna-3.4_2                 Internationalized Domain Names in Applications (IDNA) for Python3
[*] python3-inotify-0.9.6_8            Monitoring filesystems events with inotify on Linux (Python3)
[*] python3-lxml-4.9.2_1               Python binding for the libxml2 and libxslt libraries
[*] python3-mutagen-1.46.0_2           Python3 multimedia tagging library
[*] python3-numpy-1.24.2_1             Fast and sophisticated array facility to Python3
[*] python3-openrazer-3.5.1_1          Python library for accessing the Razer daemon from Python
[*] python3-pam-1.8.4_7                Python3 module for PAM authentication
[*] python3-pexpect-4.8.0_3            Python3 module for spawning child applications and controlling them
[*] python3-psutil-5.9.4_1             Cross-platform process and system utilities module for Python3
[*] python3-ptyprocess-0.7.0_3         Run a subprocess in a pseudo terminal (Python3)
[*] python3-pycodestyle-2.10.0_1       Python style guide checker (formerly called pep8)
[*] python3-pytz-2022.7.1_1            Python3 timezone library
[*] python3-pyudev-0.24.0_1            Python bindings to libudev (Python3)
[*] python3-requests-2.28.2_1          Python3 HTTP library for human beings
[*] python3-scour-0.38.2_3             SVG scrubber (Python3)
[*] python3-setproctitle-1.2.1_3       Python3 library to allow customization of the process title
[*] python3-setuptools-67.6.0_1        Easily build and distribute Python3 packages
[*] python3-sip-PyQt5-12.11.1_1        Python 3 PyQt5 SIP bindings with C and C++
[*] python3-six-1.16.0_3               Python 2 and 3 compatibility utilities (Python3)
[*] python3-tinycss-0.4_5              Complete yet simple CSS parser for Python
[*] python3-tkinter-3.11.2_1           Python programming language - GUI toolkit for Python3
[*] python3-toml-0.10.2_3              Python3 library for TOML
[*] python3-urllib3-1.26.12_1          HTTP library with thread-safe connection pooling
[*] python3-xapp-2.2.2_2               Python3 Xapp Library
```
</details>

---

EDIT I:

I forgot to mention - I installed `python3-mutagen`, to test and confirm that `yt-dlp --verbose` detects and shows libraries correctly. (excluding it, the only manual pkgs from the above list are `autopep8`, `python3-devel` and `python3-tkinter`)

```
[debug] Command-line config: ['--verbose']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d]
[debug] Python 3.11.2 (CPython x86_64 64bit) - Linux-6.1.12_1-x86_64-with-glibc2.36 (OpenSSL 1.1.1t  7 Feb 2023, glibc 2.36)
[debug] exe versions: ffmpeg 4.4.3 (setts), ffprobe 4.4.3
[debug] Optional libraries: mutagen-1.46.0, no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {'no': 'localhost,127.0.0.0/8,::1'}
[debug] Loaded 1786 extractors
```

---

EDIT II: 

<details>
<summary>click for output of simple yt-dlp run</summary>

```
[debug] Command-line config: ['--verbose', 'https://www.youtube.com/watch?v=g_VH8jd39Nc']
[debug] Encodings: locale UTF-8, fs utf-8, pref UTF-8, out utf-8, error utf-8, screen utf-8
[debug] yt-dlp version stable@2023.03.04 [392389b7d]
[debug] Python 3.11.2 (CPython x86_64 64bit) - Linux-6.1.12_1-x86_64-with-glibc2.36 (OpenSSL 1.1.1t  7 Feb 2023, glibc 2.36)
[debug] exe versions: ffmpeg 4.4.3 (setts), ffprobe 4.4.3
[debug] Optional libraries: no_Cryptodome-None, sqlite3-2.6.0
[debug] Proxy map: {'no': 'localhost,127.0.0.0/8,::1'}
[debug] Loaded 1786 extractors
[youtube] Extracting URL: https://www.youtube.com/watch?v=g_VH8jd39Nc
[youtube] g_VH8jd39Nc: Downloading webpage
[youtube] g_VH8jd39Nc: Downloading android player API JSON
[debug] Sort order given by extractor: quality, res, fps, hdr:12, source, vcodec:vp9.2, channels, acodec, lang, proto
[debug] Formats sorted by: hasvid, ie_pref, quality, res, fps, hdr:12(7), source, vcodec:vp9.2(10), channels, acodec, lang, proto, filesize, fs_approx, tbr, vbr, abr, asr, vext, aext, hasaud, id
[debug] Default format spec: bestvideo*+bestaudio/best
[info] g_VH8jd39Nc: Downloading 1 format(s): 248+251
[debug] Invoking dashsegments downloader on "URL REMOVED"
[dashsegments] Total fragments: 10
[download] Destination: EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].f248.webm
[download] 100% of   96.62MiB in 00:00:04 at 21.11MiB/s
[debug] Invoking dashsegments downloader on "URL REMOVED"
[dashsegments] Total fragments: 2
[download] Destination: EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].f251.webm
[download] 100% of   16.31MiB in 00:00:00 at 24.39MiB/s
[Merger] Merging formats into "EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].webm"
[debug] ffmpeg command line: ffmpeg -y -loglevel repeat+info -i 'file:EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].f248.webm' -i 'file:EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].f251.webm' -c copy -map 0:v:0 -map 1:a:0 -movflags +faststart 'file:EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].temp.webm'
Deleting original file EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].f248.webm (pass -k to keep)
Deleting original file EEVblog 1533 - How To Estimate Product Battery Life [g_VH8jd39Nc].f251.webm (pass -k to keep)
```
</details>

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (10 preceding siblings ...)
  2023-03-09 23:25 ` dmarto
@ 2023-03-10 20:01 ` paper42
  2023-03-10 20:02 ` [PR PATCH] [Closed]: " paper42
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2023-03-10 20:01 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 490 bytes --]

New comment by paper42 on void-packages repository

https://github.com/void-linux/void-packages/pull/42661#issuecomment-1464348683

Comment:
yt-dlp can be used for downloading from many websites, some require more than what's provided by the standard python library and ffmpeg, but those are optional dependencies and most users won't need them. I don't think we should provide these dependencies in the package, yt-dlp should provide a good error message when they are needed and missing.

^ permalink raw reply	[flat|nested] 14+ messages in thread

* Re: [PR PATCH] [Closed]: yt-dlp: fix depends
  2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
                   ` (11 preceding siblings ...)
  2023-03-10 20:01 ` paper42
@ 2023-03-10 20:02 ` paper42
  12 siblings, 0 replies; 14+ messages in thread
From: paper42 @ 2023-03-10 20:02 UTC (permalink / raw)
  To: ml

[-- Attachment #1: Type: text/plain, Size: 315 bytes --]

There's a closed pull request on the void-packages repository

yt-dlp: fix depends
https://github.com/void-linux/void-packages/pull/42661

Description:
#### Testing the changes
- I tested the changes in this PR: **YES**

#### Local build testing
- I built this PR locally for my native architecture: **x86_64**

^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2023-03-10 20:02 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-03-08 19:29 [PR PATCH] yt-dlp: fix depends icp1994
2023-03-09  1:18 ` dmarto
2023-03-09  1:21 ` dmarto
2023-03-09  5:32 ` icp1994
2023-03-09 10:18 ` dmarto
2023-03-09 20:16 ` icp1994
2023-03-09 21:10 ` dmarto
2023-03-09 21:14 ` dmarto
2023-03-09 21:19 ` dmarto
2023-03-09 22:21 ` dmarto
2023-03-09 22:23 ` dmarto
2023-03-09 23:25 ` dmarto
2023-03-10 20:01 ` paper42
2023-03-10 20:02 ` [PR PATCH] [Closed]: " paper42

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).