OS X import Error `.dylib`
zchee opened this issue · comments
Koichi Shiraishi commented
In OS X, it will be build cpsm_py.dylib
instead cpsm_py.so
when remove SUFFIX
flag.
6e00d1d
but, python can not import .dylib
file... :(
> ls
cpsm.py cpsm.vim cpsm_py.dylib*
> python
Python 2.7.10 (default, Oct 31 2015, 01:36:43)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.78)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cpsm_py
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cpsm_py
>>> import cpsm_py.dylib
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
ImportError: No module named cpsm_py.dylib
> mv cpsm_py.dylib cpsm_py.so
> python
Python 2.7.10 (default, Oct 31 2015, 01:36:43)
[GCC 4.2.1 Compatible Apple LLVM 7.0.0 (clang-700.1.78)] on darwin
Type "help", "copyright", "credits" or "license" for more information.
>>> import cpsm_py
>>> # import success
As with python_library, seems necessary osx dedicated flag.
Although there are many problems of OS X, Would you support?
Koichi Shiraishi commented
Fixed on #12
Close.