Hi,
My current solution is like this
I get the source code of project A. And use `cmdclass={"install": my_install},` in my setup function in setup.py.
my_install is a subclass of `from setuptools.command.install import install`
```
class my_install(install):
def run(self):
# DO something I want. Such as compiling the code of project A and copy the output of it (i.e. the .so file) to my binding folder
install.run(self)
```
At last I add these options in my setup function in setup.py to include the shared library in the install package.
```
package_dir={'my_binding_package': 'my_binding_folder'},
package_data={
'my_binding_package': ['Shared_lib.so'],
},
include_package_data=True,
```
But I think there should be better ways to achieve these.
Could anyone give me any elegant examples to achieve the same goal?
Thanks in advance