forked from pool/python-annoy
* Various minor fixes * Fixes to the Euclidean distance function (avoid catastrophic cancellation) * Don't MAP_POPULATE by default * dot products are now supported - Update patch reproducible.patch: * expand to not screw with cflags either OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-annoy?expand=0&rev=5
38 lines
1.3 KiB
Diff
38 lines
1.3 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.15.1/setup.py
|
|
===================================================================
|
|
--- annoy-1.15.1.orig/setup.py
|
|
+++ annoy-1.15.1/setup.py
|
|
@@ -36,26 +36,10 @@ with codecs.open('README.rst', encoding=
|
|
long_description = readme_note + fobj.read()
|
|
|
|
# Various platform-dependent extras
|
|
+cputune = []
|
|
extra_compile_args = []
|
|
extra_link_args = []
|
|
|
|
-if os.environ.get('TRAVIS') == 'true':
|
|
- # Resolving some annoying issue
|
|
- extra_compile_args += ['-mno-avx']
|
|
-
|
|
-# Not all CPUs have march as a tuning parameter
|
|
-cputune = ['-march=native',]
|
|
-if platform.machine() == 'ppc64le':
|
|
- extra_compile_args += ['-mcpu=native',]
|
|
-
|
|
-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']
|
|
-
|
|
setup(name='annoy',
|
|
version='1.15.1',
|
|
description='Approximate Nearest Neighbors in C++/Python optimized for memory usage and loading/saving to disk.',
|