https://python-packaging-zh.readthedocs.io/zh_CN/latest/non-code-files.html
在MANIFEST.in
中指定非python
的文件,这样这些特殊文件就会被复制到site-packages
中,另外需要在include_package_data=True
在加载这些文件的时候需要用__file__
变量,再加相对路径
https://python-packaging-zh.readthedocs.io/zh_CN/latest/non-code-files.html
在MANIFEST.in
中指定非python
的文件,这样这些特殊文件就会被复制到site-packages
中,另外需要在include_package_data=True
在加载这些文件的时候需要用__file__
变量,再加相对路径