How to include license file in setup.py script?

前端 未结 5 1867
陌清茗
陌清茗 2021-02-01 14:55

I have written a Python extension module in C++. I plan to distribute the module with setuptools. There will be binary distributions for 32- and 64-bit Windows (built with

5条回答
  •  Happy的楠姐
    2021-02-01 15:13

    For example:

    setup(
        ...
        license="ZPL",
        classifiers=[
            ...
            'License :: OSI Approved :: Zope Public License',
            ...
            ],
         ...)
    

    additionally you can insert your licence text into 'long_description':

    setup(
        ...
        long_description="Package description. \nLicense Text",
        ...)
    

提交回复
热议问题