Description of problem: The brp-python-bytecompile script checks for python2, and will abort silently if it is not found. When a pure python3 package is compiled in mock, __pycache__ will not be produced. Version-Release number of selected component (if applicable): Noticed in python3-3.2.1-1 How reproducible: Perfectly Steps to Reproduce: 1. Attempt to build the RPM spec in [[bugzilla:770765]] using mock Actual results: The build fails, as the spec hardcoded the path to the __pycache__ directory Expected results: Python3 is used to create a __pycache__ directory Additional info: Can be worked around by adding BuildRequires: python My assumption is most packages contain python and python3 components, and thus bring the python2 interpretor into the buildroot for the python3 components.
Ahh, wait. I just realized I wasn't familiar with bash string operators. Setting %global __python %{__python3} resolves the issue. Closing.