在rpm构建期间查找轮依赖性

时间:2016-07-13 17:37:56

标签: python ubuntu rpm

我正在处理的项目的rpm构建没有找到依赖项,我似乎无法弄清楚原因。我已将所有这些安装到我的虚拟环境中,并且它们都保存在我定义的wheel目录中。我正在使用rpmvenv库来生成rpm,但每次我从我的安装脚本运行它时,它都会返回:

Could not find a version that satisfies the requirement numpy==1.11.0 (from versions: )
No matching distribution found for numpy==1.11.0

如果我在我的venv中做pip list,那个版本的numpy就在那里,并且包裹的轮子也存在。 rpmvenv需要运行rpm.json个文件,而我的文件中有

"pip_flags": "--no-index --find-links=/path/to/wheel/directory"

python_venv扩展名中。我的印象是这行告诉构建在我的wheel目录中查找依赖项,但它找不到它们。我也尝试将--use-wheel标志添加到此行,但无济于事。

我在这里失踪的是什么?

1 个答案:

答案 0 :(得分:0)

Pip和rpm使用不同的依赖解析器和db。如果你使用pip安装python模块,那么rpm不知道它。 Rpm对python路径以及存储模块的位置一无所知。如果已经安装了python-numpy.rpm,它只检查rpmdb。

如果您需要该套餐,可以在此处找到https://copr.fedorainfracloud.org/coprs/neteler/numpy/

相关问题