Blob Blame History Raw
From 6f7d2565037b4a85bdc0da69da59be876327e166 Mon Sep 17 00:00:00 2001
From: Igor Raits <i.gnatenko.brain@gmail.com>
Date: Tue, 12 May 2020 06:15:45 +0200
Subject: [PATCH] Use system-wide double-conversion

Signed-off-by: Igor Raits <i.gnatenko.brain@gmail.com>
---
 setup.py | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)

diff --git a/setup.py b/setup.py
index 06eb031..53d72cd 100644
--- a/setup.py
+++ b/setup.py
@@ -18,22 +18,19 @@ Programming Language :: Python :: 3.7
 Programming Language :: Python :: 3.8
 """
 
-dconv_source_files = glob("./deps/double-conversion/double-conversion/*.cc")
-dconv_source_files.append("./lib/dconv_wrapper.cc")
-
 module1 = Extension(
     "ujson",
-    sources=dconv_source_files
-    + [
+    sources=[
+        "./lib/dconv_wrapper.cc",
         "./python/ujson.c",
         "./python/objToJSON.c",
         "./python/JSONtoObj.c",
         "./lib/ultrajsonenc.c",
         "./lib/ultrajsondec.c",
     ],
-    include_dirs=["./python", "./lib", "./deps/double-conversion/double-conversion"],
+    include_dirs=["./python", "./lib", "/usr/include/double-conversion"],
     extra_compile_args=["-D_GNU_SOURCE"],
-    extra_link_args=["-lstdc++", "-lm"],
+    extra_link_args=["-lstdc++", "-lm", "-ldouble-conversion"],
 )
 
 
-- 
2.26.2