在模拟构建期间,没有从brp-scl-python-bytecompile中找到/usr/bin/python3.3

时间:2014-11-28 11:07:23

标签: python centos rpm

我试图在CentOS6下构建python33-python-virtualenv。我目前只是尝试重建当前版本:https://www.softwarecollections.org/repos/rhscl/python33/epel-6-x86_64/python33-python-virtualenv-1.10.1-1.el6.src.rpm

我收到错误:/usr/lib/rpm/brp-scl-python-bytecompile: line 47: /usr/bin/python3.3: No such file or directory

知道我可能做错了吗?

注意:我在模拟环境中执行此操作,并将scl定义为python33。

1 个答案:

答案 0 :(得分:3)

每次构建python33集合的子包时,都需要在mock中安装'python33-build'包。您需要修改模拟配置,如下所示:

替换:config_opts['chroot_setup_cmd'] = 'install @buildsys-build'

with:config_opts['chroot_setup_cmd'] = 'install @build scl-utils-build python33-build'

通常,每次为该集合构建子包时都需要安装“-build”包。 '-build'包是从meta包源构建的。在这个特定的情况下,它将来自python33源: https://copr.fedoraproject.org/coprs/rhscl/python33-el7/build/27227/