MCPcopy Create free account
hub / github.com/catboost/catboost / extra_opts

Function extra_opts

catboost/python-package/mk_wheel.py:177–184  ·  view source on GitHub ↗
(on_win=False)

Source from the content-addressed store, hash-verified

175
176
177def extra_opts(on_win=False):
178 if on_win:
179 py_dir = os.path.dirname(sys.executable)
180 include_path = os.path.join(py_dir, 'include')
181 py_libs = os.path.join(py_dir, 'libs', 'python{}{}.lib'.format(sys.version_info.major, sys.version_info.minor))
182 return ['-DPYTHON_INCLUDE=/I ' + include_path, '-DPYTHON_LIBRARIES=' + py_libs]
183
184 return []
185
186
187def find_info_in_args(tail_args):

Callers 1

gen_cmdMethod · 0.85

Calls 2

joinMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected