Distribute a Python package with a compiled dynamic shared library

后端 未结 3 597
灰色年华
灰色年华 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条回答
  •  盖世英雄少女心
    2020-12-14 09:35

    If that library should also be compiled during install you can describe this as an extension module. If you just want to ship it add it as package_data

提交回复
热议问题