]> git.pld-linux.org Git - packages/yt-dlp.git/blob - no-install-devscripts.patch
up to 2022.08.14
[packages/yt-dlp.git] / no-install-devscripts.patch
1 From 460eb9c50e0970fdceb51485c5fe3268574c48e8 Mon Sep 17 00:00:00 2001
2 From: Lesmiscore <nao20010128@gmail.com>
3 Date: Mon, 15 Aug 2022 15:43:43 +0900
4 Subject: [PATCH] [build] Exclude devscripts from installs
5
6 Closes #4667
7 ---
8  pyinst.py | 2 +-
9  setup.py  | 2 +-
10  2 files changed, 2 insertions(+), 2 deletions(-)
11
12 diff --git a/pyinst.py b/pyinst.py
13 index 9be5d896041..0b7c66a30fa 100644
14 --- a/pyinst.py
15 +++ b/pyinst.py
16 @@ -81,7 +81,7 @@ def version_to_list(version):
17  def dependency_options():
18      # Due to the current implementation, these are auto-detected, but explicitly add them just in case
19      dependencies = [pycryptodome_module(), 'mutagen', 'brotli', 'certifi', 'websockets']
20 -    excluded_modules = ['test', 'ytdlp_plugins', 'youtube_dl', 'youtube_dlc']
21 +    excluded_modules = ('youtube_dl', 'youtube_dlc', 'test', 'ytdlp_plugins', 'devscripts')
22  
23      yield from (f'--hidden-import={module}' for module in dependencies)
24      yield '--collect-submodules=websockets'
25 diff --git a/setup.py b/setup.py
26 index aebe1dead9f..e376a694a38 100644
27 --- a/setup.py
28 +++ b/setup.py
29 @@ -28,7 +28,7 @@
30  
31  def packages():
32      if setuptools_available:
33 -        return find_packages(exclude=('youtube_dl', 'youtube_dlc', 'test', 'ytdlp_plugins'))
34 +        return find_packages(exclude=('youtube_dl', 'youtube_dlc', 'test', 'ytdlp_plugins', 'devscripts'))
35  
36      return [
37          'yt_dlp', 'yt_dlp.extractor', 'yt_dlp.downloader', 'yt_dlp.postprocessor', 'yt_dlp.compat',
This page took 0.045429 seconds and 3 git commands to generate.