python setup.py使用setuptools安装,而pbr使用子模块失败

2024-06-16 10:54:43 发布

您现在位置:Python中文网/ 问答频道 /正文

我有一个包含一个子模块的git repo。我使用prb和setuptools在父文件夹中运行python setup.py install

setup.py:

from setuptools import setup

setup(
    setup_requires=['pbr','setuptools'],
    pbr=True
)

然后在终端我得到以下信息:

error: can't copy '<submodule folder>': doesn't exist or not a regular file

这可能是因为被抛弃的bug https://bugs.launchpad.net/pbr/+bug/1530867

对于该错误消息是否有任何解决方法可以让我成功运行python setup.py install


Tags: 模块installfrompyimportgit文件夹true