Distribute a Python package with a compiled dynamic shared library

后端 未结 3 591
灰色年华
灰色年华 2020-12-14 09:08

How do I package a Python module together with a precompiled .so library? Specifically, how do I write setup.py so that when I do this in Python

3条回答
  •  Happy的楠姐
    2020-12-14 09:15

    As is mentioned in setupscript.html#installing-package-data:

    setup(
        ...
        package_data={'top_secret_wrapper': ['top_secret.so']},
    )
    

提交回复
热议问题