diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 4bd805ed..f6f43545 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -10,6 +10,7 @@ Bug Fixes * is_idempotent flag is not propagated from PreparedStatement to BoundStatement (PYTHON-736) * Fix asyncore hang on exit (PYTHON-767) * Driver takes several minutes to remove a bad host from session (PYTHON-762) +* Installation doesn't always fall back to no cython in Windows (PYTHON-763) Other ----- diff --git a/setup.py b/setup.py index 9d1a7231..42547a23 100644 --- a/setup.py +++ b/setup.py @@ -348,6 +348,13 @@ def pre_build_check(): compiler = new_compiler(compiler=be.compiler) customize_compiler(compiler) + try: + # We must be able to initialize the compiler if it has that method + if hasattr(compiler, "initialize"): + compiler.initialize() + except: + return False + executables = [] if compiler.compiler_type in ('unix', 'cygwin'): executables = [compiler.executables[exe][0] for exe in ('compiler_so', 'linker_so')]