MCPcopy Create free account
hub / github.com/comaps/comaps / cmake_pybindings

Method cmake_pybindings

libs/pyhelpers/setup.py:369–388  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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):

Callers 1

runMethod · 0.95

Calls 4

find_executableFunction · 0.85
chdirFunction · 0.85
get_versionFunction · 0.85
formatMethod · 0.80

Tested by

no test coverage detected