ffmpeg-generator icon indicating copy to clipboard operation
ffmpeg-generator copied to clipboard

Update setup.py

Open wilson52c opened this issue 2 years ago • 3 comments

解决setup打包安装时,transitions目录下的glsl文件没有被打进安装包中

wilson52c avatar Jul 22 '21 09:07 wilson52c

是笔误吗?我看了一下官方文档,似乎不存在 install_pakcage_data 这个参数。

fujiawei-dev avatar Jul 22 '21 10:07 fujiawei-dev

include_package_data=True 的话,package_data 中的文件是被忽略的,官方文档

If using the setuptools-specific include_package_data argument, files specified by package_data will not be automatically added to the manifest unless they are listed in the MANIFEST.in file.

实际上,我现在不改动 setup.py,重新打包是包含这些文件的,就挺很奇怪的。

fujiawei-dev avatar Jul 23 '21 13:07 fujiawei-dev

include_package_data=True 的话,package_data 中的文件是被忽略的,官方文档

If using the setuptools-specific include_package_data argument, files specified by package_data will not be automatically added to the manifest unless they are listed in the MANIFEST.in file.

实际上,我现在不改动 setup.py,重新打包是包含这些文件的,就挺很奇怪的。

https://pypi.org/project/ffmpeg-generator/1.0.6/ 你说的这个包? 你安装一下试试,你的确是把那个目录打进包里了,但是pip install的时候应该还需要执行python setup.py 吧,实际上,安装的时候那个目录也是没有到安装目录的。

wilson52c avatar Jul 26 '21 08:07 wilson52c