Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
project(test NONE)
install(CODE "execute_process(
COMMAND \\${CMAKE_COMMAND} -E sleep 0)")
"""
))
with execute_setup_py(tmp_dir, ['build'], disable_languages_test=True):
assert mock_setup.call_count == 1
setup_kw = mock_setup.call_args[1]
assert setup_kw['setup_requires'] == setup_requires
import cmake
out, _ = capsys.readouterr()
if "Searching for cmake>=3.10" in out:
assert cmake.__file__.lower().startswith(str(tmp_dir).lower())