|
16 | 16 | if platform.system() == 'Darwin':
|
17 | 17 |
|
18 | 18 | compile_opts = [ '-std=c++11',
|
19 |
| - '-mmacosx-version-min=10.7', |
20 |
| - '-stdlib=libc++', |
| 19 | + '-mmacosx-version-min={:}'.format( platform.mac_ver()[0] ), |
21 | 20 | '-Ofast' ]
|
22 | 21 |
|
23 | 22 | elif platform.system() == 'Linux':
|
|
69 | 68 | ext_modules=[ Extension( "redblackpy.series.tree_series",
|
70 | 69 | sources=["redblackpy/series/tree_series.pyx"],
|
71 | 70 | extra_compile_args=compile_opts,
|
| 71 | + extra_link_args=compile_opts[:-1], |
72 | 72 | language = "c++",
|
73 | 73 | include_dirs=['./redblackpy'],
|
74 | 74 | depends=[ 'core/tree/tree.hpp',
|
|
81 | 81 | Extension( "redblackpy.series.series_iterator",
|
82 | 82 | sources=["redblackpy/series/series_iterator.pyx"],
|
83 | 83 | extra_compile_args=compile_opts,
|
| 84 | + extra_link_args=compile_opts[:-1], |
84 | 85 | language = "c++",
|
85 | 86 | include_dirs=['./redblackpy'],
|
86 | 87 | depends=[ 'core/tree/tree.hpp',
|
|
93 | 94 | Extension( "redblackpy.benchmark.timer",
|
94 | 95 | sources=["redblackpy/benchmark/timer.pyx"],
|
95 | 96 | extra_compile_args=compile_opts,
|
| 97 | + extra_link_args=compile_opts[:-1], |
96 | 98 | language = "c++",
|
97 | 99 | include_dirs=['./redblackpy'] ) ]
|
98 | 100 |
|
|
103 | 105 | author_email='hypo@intuition.engineering',
|
104 | 106 | maintainer='Intuition',
|
105 | 107 | maintainer_email='dev@intuition.engineering',
|
106 |
| - install_requires=['cython>=0.27'], |
| 108 | + install_requires=['cython'], |
107 | 109 | description='Data structures based on red-black trees.',
|
108 | 110 | url='https://intuitionengineeringteam.github.io/RedBlackPy/',
|
109 | 111 | download_url='https://github.com/IntuitionEngineeringTeam/RedBlackPy/archive/master.zip',
|
|
0 commit comments