I have a Cython package with C library wrappers. This is the tree structure of the package.
package/ _api.pxd _wrap.pyx setup.py wrapper/ __init__.py wrap.py
Performance
python setup.py build_ext --inplace
places the _wrap.so file in the top-level directory of package/ , which is usually required in most cases. However, my wrap.py needs _wrap.so in the package/wrapper/ directory. I was wondering if there is a way to setup.py to create the .so file in the right place by itself without manually copying and pasting it into place.
python cython wrapper
Himanshu mishra
source share