Add a dll/so to a python built distribution

前端 未结 1 1116
佛祖请我去吃肉
佛祖请我去吃肉 2021-02-14 08:15

I\'ve compiled the python wrapper of nanomsg and I want to create a python installer for the package.

The package can be created by running

p         


        
相关标签:
1条回答
  • As stated in the documentation here one needs to add the following code to his setup.py script:

    setup(
    name='nanomsg',
    version=__version__,
    packages=[str('nanomsg'), str('_nanomsg_ctypes'), str('nanomsg_wrappers')],
    data_files=[('lib\\site-packages\\',["C:\\Dev\\external\\nanomsg\\x86\\Release\\nanomsg.dll"])],
    
    0 讨论(0)
提交回复
热议问题