2018-07-11 07:44:59 +00:00
|
|
|
Author: Bernhard M. Wiedemann <bwiedemann suse de>
|
|
|
|
|
Date: 2018-07-10
|
|
|
|
|
|
|
|
|
|
https://bugzilla.opensuse.org/show_bug.cgi?id=1100677
|
|
|
|
|
|
2023-12-15 12:15:46 +00:00
|
|
|
Index: annoy-1.17.3/setup.py
|
2018-07-11 07:44:59 +00:00
|
|
|
===================================================================
|
2023-12-15 12:15:46 +00:00
|
|
|
--- annoy-1.17.3.orig/setup.py
|
|
|
|
|
+++ annoy-1.17.3/setup.py
|
|
|
|
|
@@ -38,17 +38,6 @@ with codecs.open('README.rst', encoding=
|
|
|
|
|
# Various platform-dependent extras
|
2023-01-02 14:29:54 +00:00
|
|
|
extra_compile_args = ['-D_CRT_SECURE_NO_WARNINGS', '-fpermissive']
|
2019-03-06 12:14:00 +00:00
|
|
|
extra_link_args = []
|
|
|
|
|
-if platform.machine() == 'ppc64le':
|
|
|
|
|
- extra_compile_args += ['-mcpu=native',]
|
|
|
|
|
-
|
2019-09-13 14:45:22 +00:00
|
|
|
-if platform.machine() == 'x86_64':
|
2023-12-15 12:15:46 +00:00
|
|
|
- # do not apply march on Intel Darwin
|
|
|
|
|
- if platform.system() != 'Darwin':
|
|
|
|
|
- # Not all CPUs have march as a tuning parameter
|
|
|
|
|
- extra_compile_args += ['-march=native',]
|
2019-09-13 14:45:22 +00:00
|
|
|
-
|
2019-03-06 12:14:00 +00:00
|
|
|
-if os.name != 'nt':
|
|
|
|
|
- extra_compile_args += ['-O3', '-ffast-math', '-fno-associative-math']
|
2023-12-15 12:15:46 +00:00
|
|
|
|
2021-01-20 16:06:22 +00:00
|
|
|
# Add multithreaded build flag for all platforms using Python 3 and
|
|
|
|
|
# for non-Windows Python 2 platforms
|
|
|
|
|
@@ -59,11 +48,6 @@ if python_major_version == 3 or (python_
|
|
|
|
|
if os.name != 'nt':
|
|
|
|
|
extra_compile_args += ['-std=c++14']
|
|
|
|
|
|
2019-03-06 12:14:00 +00:00
|
|
|
-# #349: something with OS X Mojave causes libstd not to be found
|
|
|
|
|
-if platform.system() == 'Darwin':
|
2021-01-20 16:06:22 +00:00
|
|
|
- extra_compile_args += ['-mmacosx-version-min=10.12']
|
|
|
|
|
- extra_link_args += ['-stdlib=libc++', '-mmacosx-version-min=10.12']
|
2019-03-06 12:14:00 +00:00
|
|
|
-
|
2020-01-16 19:26:07 +00:00
|
|
|
# Manual configuration, you're on your own here.
|
|
|
|
|
manual_compiler_args = os.environ.get('ANNOY_COMPILER_ARGS', None)
|
|
|
|
|
if manual_compiler_args:
|