由于打包一个Django app 需要将一些html也放入包中,发现data_files参数没有生效,
查了一下(详见:[url]http://stackoverflow.com/questions/2994396/python-distutils-does-not-include-data-files[/url])
需要增补一个文件: MANIFEST.in, 据说这是个bug,2.7+就已经修复,不过我的环境就是2.7.3,
暂未细究,留此备忘,如有知情者烦请不吝赐教~
BTW, 增补了MANIFEST.in文件后,data_files参数都不用填了,不过需要添加参数include_package_data=True.
[url='https://docs.python.org/2/distutils/sourcedist.html']MANIFEST.in 参数规则[/url]
查了一下(详见:[url]http://stackoverflow.com/questions/2994396/python-distutils-does-not-include-data-files[/url])
需要增补一个文件: MANIFEST.in, 据说这是个bug,2.7+就已经修复,不过我的环境就是2.7.3,
暂未细究,留此备忘,如有知情者烦请不吝赐教~
BTW, 增补了MANIFEST.in文件后,data_files参数都不用填了,不过需要添加参数include_package_data=True.
[url='https://docs.python.org/2/distutils/sourcedist.html']MANIFEST.in 参数规则[/url]