tonysimpson / nanomsg-python

nanomsg wrapper for python with multiple backends (CPython and ctypes) should support 2/3 and Pypy
MIT License
382 stars 85 forks source link

Doesn't work on OS X #10

Closed tjvr closed 10 years ago

tjvr commented 10 years ago

When trying to install on OS X, I get the following error:

$ python setup.py install
Traceback (most recent call last):
  File "setup.py", line 43, in <module>
    _lib = ctypes.windll.nanoconfig
AttributeError: 'module' object has no attribute 'windll'

The problem appears to be this line in setup.py:

if 'win' in sys.platform:

Because Python on OS X reports "darwin" as the platform:

>>> sys.platform
'darwin'
tonysimpson commented 10 years ago

Thanks, I think this was fixed by 29e2a5dc.

tjvr commented 10 years ago

Seems to work now, thanks.