How to use the flit.find_python_executable function in flit

To help you get started, we’ve selected a few flit examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github takluyver / flit / tests / test_find_python_executable.py View on Github external
def test_default():
    assert find_python_executable(None) == sys.executable
github takluyver / flit / tests / test_find_python_executable.py View on Github external
def test_find_in_path():
    assert os.path.isabs(find_python_executable("python"))
github takluyver / flit / tests / test_find_python_executable.py View on Github external
def test_exception(bad_python_name: str):
    """Test that an appropriate exception (that contains the error string) is raised."""
    with pytest.raises(PythonNotFoundError, match=re.escape(bad_python_name)):
        find_python_executable(bad_python_name)
github takluyver / flit / tests / test_find_python_executable.py View on Github external
def test_self():
    assert find_python_executable(sys.executable) == sys.executable
github takluyver / flit / tests / test_find_python_executable.py View on Github external
def test_abs():
    assert find_python_executable("/usr/bin/python") == "/usr/bin/python"