New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
build against system double-conversion #375
Comments
That link is now 404, but in Fedora, removing the diff -Naur ujson-5.1.0-original/setup.py ujson-5.1.0/setup.py
--- ujson-5.1.0-original/setup.py 2021-12-20 08:07:30.000000000 -0500
+++ ujson-5.1.0/setup.py 2022-02-14 11:49:58.791418901 -0500
@@ -18,9 +18,9 @@
"./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"] + strip_flags,
+ extra_link_args=["-lstdc++", "-lm", '-ldouble-conversion'] + strip_flags,
)
with open("python/version_template.h") as f: If the maintainers like #507, perhaps a similar approach using environment variables could be applied here. |
I'd be fine with this as long as you're well aware that |
Alternatively/also, if could be worth bumping the version used here. Version 2.0.1 or so was added 5 years ago in eb7d894 and hasn't been updated since except for #488. 3.2.0 is newest at https://github.com/google/double-conversion Fedora has 3.1.5: https://fedora.pkgs.org/35/fedora-x86_64/double-conversion-devel-3.1.5-5.fc35.x86_64.rpm.html |
I think this makes sense. This request is mostly targeted at Linux distribution packaging, where bundling dependencies is generally avoided and there is generally a good (if not always flawless) process for protecting users from ABI compatibility issues in distribution packages. |
I have prepared a PR to update |
Ah you should be fine for Linux distribution packaging. Sure, PR away. |
Hi,
could you please consider to add a possibility to build against system double-conversion instead of the bundled one? For example this:
https://build.opensuse.org/package/view_file/home:pgajdos:python/python-ujson/python-ujson-system-double-conversion.patch?expand=1
is working for me, but not sure about general solution.
The text was updated successfully, but these errors were encountered: