Is it possible to include subdirectories using dist utils (setup.py) as part of package data?

前端 未结 6 1567
礼貌的吻别
礼貌的吻别 2021-01-03 17:54

Basically my python package is setup like:

module
\\_examples
  \\_folder1
     \\_file1.py
     \\_file2.py
  \\_folder2
    \\_file1.py
    \\_file2.py
         


        
6条回答
  •  甜味超标
    2021-01-03 18:33

    Following what David Wolever said, just to make it a little more clear. If you want to include everything under a sub-directory folder you have to explicitly specify each file in the MANIFEST.in,

    recursive-include examples/ *.py *.png *.sh etc.....

    It would be nice if the manifest.in would just understand examples/ and include everything but oh well.

提交回复
热议问题