/usr/bin/python3.3 not found from brp-scl-python-bytecompile during mock build

I am trying to build python33-python-virtualenv under CentOS6. I am currently just trying to rebuild the current version provided at: https://www.softwarecollections.org/repos/rhscl/python33/epel-6-x86_64/python33-python-virtualenv-1.10.1-1.el6.src.rpm

I am getting the error: /usr/lib/rpm/brp-scl-python-bytecompile: line 47: /usr/bin/python3.3: No such file or directory

Any idea what I might be doing wrong?

NB: I am doing this in a mock environment with scl defined for python33.

+3


source to share


1 answer


You must have python33-build package installed in mock every time you create python33 collection subpackage. You need to change your mock configuration like this:

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



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

Typically, every time you create a subpackage for this collection, the -build package must be installed. The '-build' package is built from the meta package source. In this particular case, it comes from python33 source: https://copr.fedoraproject.org/coprs/rhscl/python33-el7/build/27227/

+3


source







All Articles