Closed MostafaAbdelrashied closed 1 year ago
On Linux, the compiler generates by default a .so file and .dylib on macOS. Shared libraries with .dylib extensions are un-importable directly by a python script like a .so file. Ref: https://stackoverflow.com/questions/2488016/how-to-make-python-load-dylib-on-osx.
Therefore, a suffix is needed to force the compiler to generate a .so on macOS and Linux.
On Linux, the compiler generates by default a .so file and .dylib on macOS. Shared libraries with .dylib extensions are un-importable directly by a python script like a .so file. Ref: https://stackoverflow.com/questions/2488016/how-to-make-python-load-dylib-on-osx.
Therefore, a suffix is needed to force the compiler to generate a .so on macOS and Linux.