(self)
| 367 | ) |
| 368 | |
| 369 | def cmake_pybindings(self): |
| 370 | # On some linux systems the cmake we need is called cmake3 |
| 371 | # So we must prefer it |
| 372 | for cmake in ['cmake3', 'cmake']: |
| 373 | if find_executable(cmake): |
| 374 | break |
| 375 | |
| 376 | mkpath(self.omim_builddir) |
| 377 | with chdir(self.omim_builddir): |
| 378 | spawn( |
| 379 | [ |
| 380 | cmake, |
| 381 | '-DSKIP_QT_GUI=1', |
| 382 | '-DPYBINDINGS=ON', |
| 383 | '-DPYBINDINGS_VERSION={}'.format(get_version()), |
| 384 | '-DPYTHON_EXECUTABLE={}'.format(sys.executable), |
| 385 | '-DPYTHON_INCLUDE_DIR={}'.format(get_python_inc()), |
| 386 | OMIM_ROOT, |
| 387 | ] |
| 388 | ) |
| 389 | |
| 390 | def build_extension(self, ext): |
| 391 | with chdir(self.omim_builddir): |
no test coverage detected