demisjohn / CAMFR

Python-based electromagnetic simulator and mode solver for nanophotonics applications, using the Eigenmode Expansion (EME) method.
GNU General Public License v2.0
65 stars 30 forks source link

Automatically rename `_camfr.dylib` to `_camfr.so` #7

Closed demisjohn closed 2 years ago

demisjohn commented 6 years ago

From @demisjohn on February 28, 2018 8:20

Currently the build produces a compiled _camfr.dylib, but Python expects to import a _camfr.so. The user must manually rename the .dylib --> .so for the installation to work.

Should have setup.py do this rename automatically, OR set the proper linker flag to have it produce the correct library extension.

It might be that changing the link_flag= -dynamic to -bundle might do this, but I'm not sure.

Copied from original issue: demisjohn/CAMFR#3