graphserver
graphserver copied to clipboard
pygs does not find C library under Cygwin
Under Cygwin, pygs doesn't correctly find the standard C library.
The culprit is the following line in pygs/graphserver/gsdll.py: libc = cdll.LoadLibrary(find_library('c'))
A more general solution would be to replace the above line with something like:
# Adapted from ctypes.test.test_loading
# Find and load the c runtime library
libc_name = None
if sys.platform == "cygwin":
libc_name = "cygwin1.dll"
else:
libc_name = find_library("c")
if not libc_name:
raise ImportError('could not determine which c runtime library to
use')
libc = cdll.LoadLibrary(libc_name)
Fixed in andrewbyrd/graphserver.