doc: more detail about ways to skip cython
This commit is contained in:
@@ -3307,7 +3307,7 @@ class ResultSet(object):
|
|||||||
@property
|
@property
|
||||||
def current_rows(self):
|
def current_rows(self):
|
||||||
"""
|
"""
|
||||||
:return: the list of current page rows. May be empty if the result was empty,
|
The list of current page rows. May be empty if the result was empty,
|
||||||
or this is the last page.
|
or this is the last page.
|
||||||
"""
|
"""
|
||||||
return self._current_rows or []
|
return self._current_rows or []
|
||||||
|
|||||||
@@ -129,16 +129,33 @@ By default, this package uses `Cython <http://cython.org/>`_ to optimize core mo
|
|||||||
This is not a hard requirement, but is engaged by default to build extensions offering better performance than the
|
This is not a hard requirement, but is engaged by default to build extensions offering better performance than the
|
||||||
pure Python implementation.
|
pure Python implementation.
|
||||||
|
|
||||||
|
This is a costly build phase, especially in clean environments where the Cython compiler must be built
|
||||||
This build phase can be avoided using the build switch, or an environment variable::
|
This build phase can be avoided using the build switch, or an environment variable::
|
||||||
|
|
||||||
python setup.py install --no-cython
|
python setup.py install --no-cython
|
||||||
-or-
|
|
||||||
pip install --install-option="--no-cython" <spec-or-path>
|
|
||||||
|
|
||||||
Alternatively, an environment variable can be used to switch this option regardless of
|
Alternatively, an environment variable can be used to switch this option regardless of
|
||||||
context::
|
context::
|
||||||
|
|
||||||
CASS_DRIVER_NO_CYTHON=1 <your script here>
|
CASS_DRIVER_NO_CYTHON=1 <your script here>
|
||||||
|
- or, to disable all extensions:
|
||||||
|
CASS_DRIVER_NO_EXTENSIONS=1 <your script here>
|
||||||
|
|
||||||
|
This method is required when using pip, which provides no other way of injecting user options in a single command::
|
||||||
|
|
||||||
|
CASS_DRIVER_NO_CYTHON=1 pip install cassandra-driver
|
||||||
|
CASS_DRIVER_NO_CYTHON=1 sudo -E pip install ~/python-driver
|
||||||
|
|
||||||
|
The environment variable is the preferred option because it spans all invocations of setup.py, and will
|
||||||
|
prevent Cython from being materialized as a setup requirement.
|
||||||
|
|
||||||
|
If your sudo configuration does not allow SETENV, you must push the option flag down via pip. However, pip
|
||||||
|
applies these options to all dependencies (which break on the custom flag). Therefore, you must first install
|
||||||
|
dependencies, then use install-option::
|
||||||
|
|
||||||
|
sudo pip install six futures
|
||||||
|
sudo pip install --install-option="--no-cython"
|
||||||
|
|
||||||
|
|
||||||
libev support
|
libev support
|
||||||
^^^^^^^^^^^^^
|
^^^^^^^^^^^^^
|
||||||
|
|||||||
Reference in New Issue
Block a user