【发布时间】:2020-08-18 15:22:01
【问题描述】:
我花了很多时间来解决这个问题:
我的 setup.py 如下:
install_requires=install_requires,
python_requires='>=3.6.5',
include_package_data=True,
#### CLI
scripts = scripts,
但是,当 pip install -e 。 ,它不会将 *.csv、*.txt 文件复制到 MYpackages/ 中。 如何添加?
检查了以下资源:
Is it possible to include csv file as part of python package
https://python-packaging.readthedocs.io/en/latest/non-code-files.html
【问题讨论】:
标签: python pip setuptools setup.py