diff options
author | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
---|---|---|
committer | V3n3RiX <venerix@koprulu.sector> | 2022-06-29 12:04:12 +0100 |
commit | 0f558761aa2dee1017b4751e4017205e015a9560 (patch) | |
tree | 037df795519468a25d9362b4e95cdaeb84eb1cf9 /dev-python/pysimdjson/files | |
parent | 752d6256e5204b958b0ef7905675a940b5e9172f (diff) |
gentoo resync : 29.12.2022
Diffstat (limited to 'dev-python/pysimdjson/files')
-rw-r--r-- | dev-python/pysimdjson/files/pysimdjson-4.0.0-unbundle.patch | 95 |
1 files changed, 0 insertions, 95 deletions
diff --git a/dev-python/pysimdjson/files/pysimdjson-4.0.0-unbundle.patch b/dev-python/pysimdjson/files/pysimdjson-4.0.0-unbundle.patch deleted file mode 100644 index de52bc063a24..000000000000 --- a/dev-python/pysimdjson/files/pysimdjson-4.0.0-unbundle.patch +++ /dev/null @@ -1,95 +0,0 @@ -diff --git a/setup.py b/setup.py -index f1de675..4c23028 100644 ---- a/setup.py -+++ b/setup.py -@@ -27,53 +27,59 @@ if system == 'Darwin': - os.environ.setdefault('MACOSX_DEPLOYMENT_TARGET', '10.14') - extra_compile_args.append('-std=c++11') - --if os.getenv('BUILD_WITH_CYTHON') and not CYTHON_AVAILABLE: -+build_with_cython = os.getenv('BUILD_WITH_CYTHON') -+if build_with_cython and not CYTHON_AVAILABLE: - print( - 'BUILD_WITH_CYTHON environment variable is set, but cython' - ' is not available. Falling back to pre-cythonized version if' - ' available.' - ) -+ build_with_cython = False - --if os.getenv('BUILD_WITH_CYTHON') and CYTHON_AVAILABLE: -- macros = [] -- compiler_directives = { -- 'embedsignature': True -- } -+build_with_system_lib = os.getenv('BUILD_WITH_SYSTEM_LIB') -+ -+macros = [] -+compiler_directives = {} -+libraries = [] -+sources = [ -+ 'simdjson/errors.cpp', -+] -+ -+if build_with_system_lib: -+ libraries.append('simdjson') -+else: -+ sources.append('simdjson/simdjson.cpp') -+ -+if build_with_cython: -+ compiler_directives['embedsignature'] = True - - if os.getenv('BUILD_FOR_DEBUG'): - # Enable line tracing, which also enables support for coverage - # reporting. -- macros = [ -+ macros += [ - ('CYTHON_TRACE', 1), - ('CYTHON_TRACE_NOGIL', 1) - ] - compiler_directives['linetrace'] = True - -- extensions = cythonize([ -- Extension( -- 'csimdjson', -- [ -- 'simdjson/simdjson.cpp', -- 'simdjson/errors.cpp', -- 'simdjson/csimdjson.pyx' -- ], -- define_macros=macros, -- extra_compile_args=extra_compile_args -- ) -- ], compiler_directives=compiler_directives) -+ sources.append('simdjson/csimdjson.pyx') - else: -- extensions = [ -- Extension( -- 'csimdjson', -- [ -- 'simdjson/simdjson.cpp', -- 'simdjson/errors.cpp', -- 'simdjson/csimdjson.cpp' -- ], -- extra_compile_args=extra_compile_args, -- language='c++' -- ) -- ] -+ sources.append('simdjson/csimdjson.cpp') -+ -+ -+extensions = [ -+ Extension( -+ 'csimdjson', -+ sources, -+ define_macros=macros, -+ extra_compile_args=extra_compile_args, -+ libraries=libraries, -+ language='c++', -+ ) -+] -+ -+if build_with_cython: -+ extensions = cythonize(extensions, compiler_directives=compiler_directives) - - setup( - name='pysimdjson', |