Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pygs does not find C library under Cygwin #8

Open
abyrd opened this issue Aug 7, 2009 · 1 comment
Open

pygs does not find C library under Cygwin #8

abyrd opened this issue Aug 7, 2009 · 1 comment

Comments

@abyrd
Copy link
Contributor

abyrd commented Aug 7, 2009

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)
@abyrd
Copy link
Contributor Author

abyrd commented Aug 9, 2009

Fixed in andrewbyrd/graphserver.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant