12

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

python setup.py bdist --format=wininst

However I would like nanomsg.dll/nanomsg.so to be included in the installer/package but I haven't found any documentation regarding this issue.

user3666197
  • 1
  • 6
  • 50
  • 92
shluvme
  • 713
  • 7
  • 24
  • possible duplicate : http://stackoverflow.com/questions/2822424/python-copy-a-dll-to-site-packages-on-windows – shluvme Oct 20 '15 at 11:34

1 Answers1

12

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"]
    )],
)
KetZoomer
  • 2,701
  • 3
  • 15
  • 43
shluvme
  • 713
  • 7
  • 24