14
0
forked from pool/python-ujson
Files
python-ujson/python-ujson-system-double-conversion.patch
Tomáš Chvátal 8f8424f2ad Accepting request 783435 from home:pgajdos:python
- version update to 2.0.1
  Added
    Include license file in manifest (#288) @kszucs
    added "static" to C functions, where possible (#238) @WGH-
    bring back benchmark introduction (#234) @rdpate
    Add syntax highlighting to README (#255) @adamchainz
    Test on new Travis CPUs (#350) @hugovk
    Test on GitHub Actions (#348) @hugovk
    Test on Python 3.9-dev to avoid surprises (#349) @hugovk
    Use Release Drafter to draft releases (#365) @hugovk
    Deploy from GitHub Actions instead of Travis CI (#364) @hugovk
    Autodeploy to PyPI from Travis CI (#357) @hugovk
    Lint with pre-commit: Black, isort, Flake8 (#354) @hugovk
  Changed
    Use Google's double-conversion lib to fix floating-point precision when converting doubles to and from strings, improves double encoding by 4-5x (eb7d894) @Jahaja
    Reduce default buffer on stack size (#281) @ncopa
    Update ultrajsondec.c (#260) @markpiekarz
    Indent dict values (#217) @orivej
    Test with pytest (#363) @hugovk
    Less Travis (#361) @hugovk
    Update links (#356) @hugovk
    Tests: Remove unused, unmaintained blist (#362) @hugovk
    Only deploy sdist from Travis CI (#359) @hugovk
  Removed
    Drop EOL Python 2.5-2.6, 3.2-3.4 and add 3.7-3.8 (#298) @hugovk
    Remove serialization of date/datetime objects (50181f0) @Jahaja
    Remove double_precision encoding option and precise_float decoding option (eb7d894) @Jahaja
    Remove generic serialization of objects/iterables (53f85b1) @Jahaja
    Remove support for __json__ method on str (5f98f01) @Jahaja
    Remove blist tests (3a6ba52) @Jahaja

OBS-URL: https://build.opensuse.org/request/show/783435
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ujson?expand=0&rev=15
2020-03-10 14:38:08 +00:00

17 lines
655 B
Diff

Index: ujson-2.0.1/setup.py
===================================================================
--- ujson-2.0.1.orig/setup.py 2020-03-08 09:02:52.000000000 +0100
+++ ujson-2.0.1/setup.py 2020-03-10 15:01:45.077782242 +0100
@@ -33,9 +33,9 @@ module1 = Extension(
"./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"],
)