@@ -74,15 +74,15 @@ def run(self):
74
74
75
75
try :
76
76
os .makedirs (path )
77
- except :
77
+ except OSError :
78
78
pass
79
79
80
80
if has_subprocess :
81
81
# Prevent run with in-place extensions because cython-generated objects do not carry docstrings
82
82
# http://docs.cython.org/src/userguide/special_methods.html#docstrings
83
83
import glob
84
84
for f in glob .glob ("cassandra/*.so" ):
85
- print ("Removing '%s' to allow docs to run on pure python modules." % (f ,))
85
+ print ("Removing '%s' to allow docs to run on pure python modules." % (f ,))
86
86
os .unlink (f )
87
87
88
88
# Build io extension to make import and docstrings work
@@ -114,16 +114,19 @@ class BuildFailed(Exception):
114
114
def __init__ (self , ext ):
115
115
self .ext = ext
116
116
117
+
117
118
is_windows = sys .platform .startswith ('win32' )
118
119
is_macos = sys .platform .startswith ('darwin' )
119
120
120
121
murmur3_ext = Extension ('cassandra.cmurmur3' ,
121
122
sources = ['cassandra/cmurmur3.c' ])
122
123
124
+
123
125
def eval_env_var_as_array (varname ):
124
126
val = os .environ .get (varname )
125
127
return None if not val else [v .strip () for v in val .split (',' )]
126
128
129
+
127
130
DEFAULT_LIBEV_INCLUDES = ['/usr/include/libev' , '/usr/local/include' , '/opt/local/include' , '/usr/include' ]
128
131
DEFAULT_LIBEV_LIBDIRS = ['/usr/local/lib' , '/opt/local/lib' , '/usr/lib64' ]
129
132
libev_includes = eval_env_var_as_array ('CASS_DRIVER_LIBEV_INCLUDES' ) or DEFAULT_LIBEV_INCLUDES
@@ -338,7 +341,7 @@ def pre_build_check():
338
341
# We must be able to initialize the compiler if it has that method
339
342
if hasattr (compiler , "initialize" ):
340
343
compiler .initialize ()
341
- except :
344
+ except OSError :
342
345
return False
343
346
344
347
executables = []
@@ -383,7 +386,7 @@ def run_setup(extensions):
383
386
else :
384
387
sys .stderr .write ("Bypassing Cython setup requirement\n " )
385
388
386
- dependencies = ['geomet>=0.1,<0.3 ' ]
389
+ dependencies = ['geomet>=1.1 ' ]
387
390
388
391
_EXTRAS_REQUIRE = {
389
392
'graph' : ['gremlinpython==3.4.6' ],
0 commit comments