File: 0006-Don-t-try-to-build-ujson.patch

package info (click to toggle)
python-srsly 2.5.2-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,256 kB
  • sloc: python: 17,567; ansic: 1,434; sh: 12; makefile: 6
file content (33 lines) | stat: -rw-r--r-- 1,099 bytes parent folder | download | duplicates (2)
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
From: Stuart Prescott <stuart@debian.org>
Date: Mon, 8 Dec 2025 17:21:41 +1100
Subject: Don't try to build ujson

---
 setup.py | 14 --------------
 1 file changed, 14 deletions(-)

diff --git a/setup.py b/setup.py
index 7fd4252..df10e45 100644
--- a/setup.py
+++ b/setup.py
@@ -109,20 +109,6 @@ def setup_package():
                     define_macros=macros,
                 )
             )
-        ext_modules.append(
-            Extension(
-                "srsly.ujson.ujson",
-                sources=[
-                    "./srsly/ujson/ujson.c",
-                    "./srsly/ujson/objToJSON.c",
-                    "./srsly/ujson/JSONtoObj.c",
-                    "./srsly/ujson/lib/ultrajsonenc.c",
-                    "./srsly/ujson/lib/ultrajsondec.c",
-                ],
-                include_dirs=["./srsly/ujson", "./srsly/ujson/lib"],
-                extra_compile_args=["-D_GNU_SOURCE"],
-            )
-        )
         print("Cythonizing sources")
         ext_modules = cythonize(
             ext_modules, compiler_directives=COMPILER_DIRECTIVES, language_level=2