forked from pool/python-annoy
- update to 1.16.3 * some error message improvements * doing more stack allocations instead of heap * fixes to a few tests that were failing on other platforms - Rebase patch reproducible.patch OBS-URL: https://build.opensuse.org/request/show/765053 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-annoy?expand=0&rev=15
33 lines
1.1 KiB
Diff
33 lines
1.1 KiB
Diff
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
Date: 2018-07-10
|
|
|
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1100677
|
|
|
|
Index: annoy-1.16.3/setup.py
|
|
===================================================================
|
|
--- annoy-1.16.3.orig/setup.py
|
|
+++ annoy-1.16.3/setup.py
|
|
@@ -38,22 +38,6 @@ with codecs.open('README.rst', encoding=
|
|
extra_compile_args = ['-D_CRT_SECURE_NO_WARNINGS']
|
|
extra_link_args = []
|
|
|
|
-# Not all CPUs have march as a tuning parameter
|
|
-cputune = ['-march=native',]
|
|
-if platform.machine() == 'ppc64le':
|
|
- extra_compile_args += ['-mcpu=native',]
|
|
-
|
|
-if platform.machine() == 'x86_64':
|
|
- extra_compile_args += cputune
|
|
-
|
|
-if os.name != 'nt':
|
|
- extra_compile_args += ['-O3', '-ffast-math', '-fno-associative-math']
|
|
-
|
|
-# #349: something with OS X Mojave causes libstd not to be found
|
|
-if platform.system() == 'Darwin':
|
|
- extra_compile_args += ['-std=c++11', '-mmacosx-version-min=10.9']
|
|
- extra_link_args += ['-stdlib=libc++', '-mmacosx-version-min=10.9']
|
|
-
|
|
# Manual configuration, you're on your own here.
|
|
manual_compiler_args = os.environ.get('ANNOY_COMPILER_ARGS', None)
|
|
if manual_compiler_args:
|