Skip to content

Commit

Permalink
Originally a bug found by rossdylan, several distros were unable to
Browse files Browse the repository at this point in the history
build or install fapws3 due to a libev only being checked for .a
extension. I added some logic to check for .la and .so, this allowed
me to install on x86_64 and ia64 architectures on gentoo.
  • Loading branch information
WillDignazio committed Mar 26, 2012
1 parent d468475 commit 036cfa3
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,11 @@ def find_file(fname, dirs):
print "Please install the sources of python, or provide the path by setting the shell environmental variable C_INCLUDE_PATH"
sys.exit(1)
include_dirs.append(res)
res=find_file('libev.a',search_library_dirs)

res=find_file('libev.a',search_library_dirs) or\
find_file('libev.so', search_library_dirs) or\
find_file('libev.la', search_library_dirs)

if res==False:
print "We don't find 'libev.so' which is a mandatory file to run Fapws"
print "Please install libev, or provide the path by setting the shell environmental variable LD_LIBRARY_PATH"
Expand Down

0 comments on commit 036cfa3

Please sign in to comment.