|
3 | 3 |
|
4 | 4 | class KiwiSolverRecipe(CppCompiledComponentsPythonRecipe):
|
5 | 5 | site_packages_name = 'kiwisolver'
|
6 |
| - version = '0.1.3' |
7 |
| - url = 'https://github.com/nucleic/kiwi/archive/master.zip' |
8 |
| - depends = ['setuptools'] |
| 6 | + # Pin to commit `docs: attempt to fix doc building`, the latest one |
| 7 | + # at the time of writing, just to be sure that we have te most up to date |
| 8 | + # version, but it should be pinned to an official release once the c++ |
| 9 | + # changes that we want to include are merged to master branch |
| 10 | + # Note: the commit we want to include is |
| 11 | + # `Cppy use update and c++11 compatibility` (4858730) |
| 12 | + version = '0846189' |
| 13 | + url = 'https://github.com/nucleic/kiwi/archive/{version}.zip' |
| 14 | + depends = ['cppy'] |
| 15 | + |
| 16 | + def get_recipe_env(self, arch=None, with_flags_in_cc=True): |
| 17 | + env = super().get_recipe_env(arch, with_flags_in_cc) |
| 18 | + if self.need_stl_shared: |
| 19 | + # kiwisolver compile flags does not honor the standard flags: |
| 20 | + # `CPPFLAGS` and `LDLIBS`, so we put in `CFLAGS` and `LDFLAGS` to |
| 21 | + # correctly link with the `c++_shared` library |
| 22 | + env['CFLAGS'] += f' -I{self.stl_include_dir}' |
| 23 | + env['CFLAGS'] += ' -frtti -fexceptions' |
| 24 | + |
| 25 | + env['LDFLAGS'] += f' -L{self.get_stl_lib_dir(arch)}' |
| 26 | + env['LDFLAGS'] += f' -l{self.stl_lib_name}' |
| 27 | + return env |
9 | 28 |
|
10 | 29 |
|
11 | 30 | recipe = KiwiSolverRecipe()
|
0 commit comments