Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Compatibility with Mac OS X: choose dynamic library extension by
platform.
- Loading branch information
Andrey Smirnov
committed
May 30, 2011
1 parent
5d3690e
commit c8c8419
Showing
1 changed file
with
2 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c8c8419
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe ctypes has a find library function that takes 'zmq' and prepends, appends lib, .dylib, .so as necessary.
c8c8419
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dholth, it doesn't seem to work for me on Python 2.7 and Mac OS X:
E OSError: dlopen(zmq, 6): no suitable image found. Did find:
E zmq: not a file
c8c8419
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
http://docs.python.org/library/ctypes.html#finding-shared-libraries ctypes.util.find_library(name)
c8c8419
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, fixed in: 808c9ba