I have a Cython package with wrappers of a C library. This is the tree structure of the package
package/
_api.pxd
_wrap.pyx
setup.py
wrapper/
__init__.py
wrap.py
Doing
python setup.py build_ext --inplace
puts the _wrap.so
file in the top-level package/
directory which is normally required in most cases. However, my wrap.py
needs the _wrap.so
in the package/wrapper/
directory. I was wondering if there's a way in which setup.py
could create the .so
file in the desired place by itself without manually copying and pasting it in the location.