【发布时间】:2019-05-03 20:40:43
【问题描述】:
setup.cfg 部分 data_files 包含一个带有符号链接的目录。运行python setup.py sdist 时,生成的分布不包含符号链接,它们被忽略。这里是setup.py的内容,基于pbr:
#!/usr/bin/env python
from setuptools import setup
setup(
setup_requires=['pbr'],
pbr=True,
)
取消引用符号链接并包含实际文件会很好。分布会更大,因为文件是重复的,但它会是完整的。
看看sdist sources,看起来符号链接总是被忽略:
$ python setup.py sdist
...
'molecule/debops' not a regular file -- skipping
...
有没有办法说服sdist 取消引用符号链接?
【问题讨论】:
-
只有在直接使用
distutils时才会这样吗?或者在使用setuptools的时候? -
上面的留言是from distutils
标签: setuptools distutils python-packaging