@@ -131,6 +131,8 @@ class BuildFailed(Exception):
131
131
def __init__ (self , ext ):
132
132
self .ext = ext
133
133
134
+ is_windows = sys .platform .startswith ('win32' )
135
+ is_macos = sys .platform .startswith ('darwin' )
134
136
135
137
def get_subdriname (directory_path ):
136
138
try :
@@ -160,8 +162,6 @@ def get_libev_headers_path():
160
162
murmur3_ext = Extension ('cassandra.cmurmur3' ,
161
163
sources = ['cassandra/cmurmur3.c' ])
162
164
163
- is_macos = sys .platform .startswith ('darwin' )
164
-
165
165
libev_includes = ['/usr/include/libev' , '/usr/local/include' , '/opt/local/include' , '/usr/include' ]
166
166
libev_libdirs = ['/usr/local/lib' , '/opt/local/lib' , '/usr/lib64' ]
167
167
if is_macos :
@@ -176,9 +176,9 @@ def get_libev_headers_path():
176
176
177
177
libev_ext = Extension ('cassandra.io.libevwrapper' ,
178
178
sources = ['cassandra/io/libevwrapper.c' ],
179
- include_dirs = libev_includes + [ '/usr/include/libev' , '/usr/local/include' , '/opt/local/include' ] ,
179
+ include_dirs = libev_includes ,
180
180
libraries = ['ev' ],
181
- library_dirs = libev_libdirs + [ '/usr/local/lib' , '/opt/local/lib' ] )
181
+ library_dirs = libev_libdirs )
182
182
183
183
platform_unsupported_msg = \
184
184
"""
@@ -201,8 +201,6 @@ def get_libev_headers_path():
201
201
=================================================================================
202
202
"""
203
203
204
- is_windows = os .name == 'nt'
205
-
206
204
is_pypy = "PyPy" in sys .version
207
205
if is_pypy :
208
206
sys .stderr .write (pypy_unsupported_msg )
0 commit comments