Skip to content

Commit d8fff46

Browse files
committed
short-circuit setup_requires for egg_info in pip context
PYTHON-448
1 parent 4cbf170 commit d8fff46

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -189,6 +189,7 @@ def __init__(self, ext):
189189
try_murmur3 = try_extensions and "--no-murmur3" not in sys.argv
190190
try_libev = try_extensions and "--no-libev" not in sys.argv and not is_pypy and not is_windows
191191
try_cython = try_extensions and "--no-cython" not in sys.argv and not is_pypy and not os.environ.get('CASS_DRIVER_NO_CYTHON')
192+
try_cython &= 'egg_info' not in sys.argv # bypass setup_requires for pip egg_info calls, which will never have --install-option"--no-cython" coming fomr pip
192193

193194
sys.argv = [a for a in sys.argv if a not in ("--no-murmur3", "--no-libev", "--no-cython", "--no-extensions")]
194195

0 commit comments

Comments
 (0)