rdobuilder 536e7a
From 91ab320957b15188c63a280133a71ae3fdb2e758 Mon Sep 17 00:00:00 2001
rdobuilder 536e7a
From: Kushal Das <mail@kushaldas.in>
rdobuilder 536e7a
Date: Sun, 7 Jun 2020 13:11:55 +0530
rdobuilder 536e7a
Subject: [PATCH] Use double-conversion from the system
rdobuilder 536e7a
rdobuilder 536e7a
---
rdobuilder 536e7a
 setup.py | 10 ++++------
rdobuilder 536e7a
 1 file changed, 4 insertions(+), 6 deletions(-)
rdobuilder 536e7a
rdobuilder 536e7a
diff --git a/setup.py b/setup.py
rdobuilder 536e7a
index 87b96fa..47c409c 100644
rdobuilder 536e7a
--- a/setup.py
rdobuilder 536e7a
+++ b/setup.py
rdobuilder 536e7a
@@ -17,22 +17,20 @@ Programming Language :: Python :: 3.8
rdobuilder 536e7a
 Programming Language :: Python :: 3 :: Only
rdobuilder 536e7a
 """
rdobuilder 536e7a
 
rdobuilder 536e7a
-dconv_source_files = glob("./deps/double-conversion/double-conversion/*.cc")
rdobuilder 536e7a
-dconv_source_files.append("./lib/dconv_wrapper.cc")
rdobuilder 536e7a
 
rdobuilder 536e7a
 module1 = Extension(
rdobuilder 536e7a
     "ujson",
rdobuilder 536e7a
-    sources=dconv_source_files
rdobuilder 536e7a
-    + [
rdobuilder 536e7a
+    sources=[
rdobuilder 536e7a
+        "./lib/dconv_wrapper.cc",
rdobuilder 536e7a
         "./python/ujson.c",
rdobuilder 536e7a
         "./python/objToJSON.c",
rdobuilder 536e7a
         "./python/JSONtoObj.c",
rdobuilder 536e7a
         "./lib/ultrajsonenc.c",
rdobuilder 536e7a
         "./lib/ultrajsondec.c",
rdobuilder 536e7a
     ],
rdobuilder 536e7a
-    include_dirs=["./python", "./lib", "./deps/double-conversion/double-conversion"],
rdobuilder 536e7a
+    include_dirs=["./python", "./lib", "/usr/include/double-conversion"],
rdobuilder 536e7a
     extra_compile_args=["-D_GNU_SOURCE"],
rdobuilder 536e7a
-    extra_link_args=["-lstdc++", "-lm"],
rdobuilder 536e7a
+    extra_link_args=["-lstdc++", "-lm", "-ldouble-conversion"],
rdobuilder 536e7a
 )
rdobuilder 536e7a
 
rdobuilder 536e7a
 
rdobuilder 536e7a
-- 
rdobuilder 536e7a
2.26.2
rdobuilder 536e7a