@@ -31,6 +31,23 @@ To fix this, re-run the installation with an extra compilation flag::
3131
3232 ARCHFLAGS=-Wno-error=unused-command-line-argument-hard-error-in-future pip install cassandra-driver
3333
34+ .. _windows_build :
35+
36+ Windows Installation Notes
37+ --------------------------
38+ Installing the driver with extensions in Windows sometimes presents some challenges. A few notes about common
39+ hang-ups:
40+
41+ Setup requires a compiler. When using Python 2, this is as simple as installing `this package <http://aka.ms/vcpython27 >`_
42+ (this link is also emitted during install if setuptools is unable to find the resources it needs). Depending on your
43+ system settings, this package may install as a user-specific application. Make sure to install for everyone, or at least
44+ as the user that will be building the Python environment.
45+
46+ It is also possible to run the build with your compiler of choice. Just make sure to have your environment setup with
47+ the proper paths. Make sure the compiler target architecture matches the bitness of your Python runtime.
48+ Perhaps the easiest way to do this is to run the build/install from a Visual Studio Command Prompt (a
49+ shortcut installed with Visual Studio that sources the appropriate environment and presents a shell).
50+
3451Manual Installation
3552-------------------
3653You can always install the driver directly from a source checkout or tarball.
@@ -114,6 +131,8 @@ On RedHat and RedHat-based systems like CentOS and Fedora::
114131
115132On OS X, homebrew installations of Python should provide the necessary headers.
116133
134+ See :ref: `windows_build ` for notes on configuring the build environment on Windows.
135+
117136libev support
118137^^^^^^^^^^^^^
119138The driver currently uses Python's ``asyncore `` module for its default
@@ -134,6 +153,9 @@ through `Homebrew <http://brew.sh/>`_. For example, on Mac OS X::
134153
135154 $ brew install libev
136155
156+ The libev extension is not built for Windows (the build process is complex, and the Windows implementation uses
157+ select anyway).
158+
137159If successful, you should be able to build and install the extension
138160(just using ``setup.py build `` or ``setup.py install ``) and then use
139161the libev event loop by doing the following:
0 commit comments