File: 0003-Drop-libzstd-license-file-generator.patch

package info (click to toggle)
python-pyzstd 0.18.0%2Bds-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 772 kB
  • sloc: python: 7,617; ansic: 3,938; makefile: 5
file content (36 lines) | stat: -rw-r--r-- 1,219 bytes parent folder | download
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
From: YOKOTA Hiroshi <yokota.hgml@gmail.com>
Date: Thu, 9 Oct 2025 14:49:46 +0900
Subject: Drop libzstd license file generator

Forwarded: not-needed

Debian source package drops libzstd code
---
 setup.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/setup.py b/setup.py
index b203950..2807cb5 100644
--- a/setup.py
+++ b/setup.py
@@ -22,20 +22,6 @@ def read_stuff():
         m = re.search(r'''__version__\s*=\s*(['"])(.*?)\1''', file_content)
         module_version = m.group(2)
 
-    # Create LICENSE_zstd
-    LICENSE_ZSTD_SRC = os.path.join(ROOT_PATH, 'zstd', 'LICENSE')
-    with open(LICENSE_ZSTD_SRC, 'r', encoding='utf-8') as file:
-        license_zstd = file.read()
-    LICENSE_ZSTD_DST = os.path.join(ROOT_PATH, 'LICENSE_zstd')
-    with open(LICENSE_ZSTD_DST, 'w', encoding='utf-8') as file:
-        file.write(
-            "Depending on how it is build, this package may distribute the zstd library,\n"
-            "partially or in its integrality, in source or binary form.\n\n"
-            "Its license is reproduced below.\n\n"
-            "---\n\n"
-        )
-        file.write(license_zstd)
-
     return long_description, module_version
 
 def get_zstd_files_list():