Description of problem: python3-devel requires python (2). When BuildRequiring python3-devel, python 2 gets pulled to the buildroot and something may be done/run with it instead of python3. This should not be problematic if the package is bulletproof, but when the maintainer forgets something, it is better to result with error that /usr/bin/python cannot be found, than actually use Python 2 instead of Python 3. Version-Release number of selected component (if applicable): 3.4.3-5.fc23 How reproducible: Always Steps to Reproduce: 1. mock -r fedora-rawhide-x86_64 --init 2. mock -r fedora-rawhide-x86_64 --install python3-devel Actual results: ... Installed: python.x86_64 2.7.10-4.fc23 python-libs.x86_64 2.7.10-4.fc23 python-macros.noarch 2.7.10-4.fc23 python-pip.noarch 7.1.0-1.fc23 python-setuptools.noarch 18.0.1-2.fc23 yh-devel.x86_64 3.4.3-5.fc23 Expected results: ... Installed: python3-devel.x86_64 3.4.3-5.fc23 Additional info: It is brought by python-macros. By last commit in python3 dist-git: http://pkgs.fedoraproject.org/cgit/python3.git/commit/?id=8d338b77849f269e5605dc22a12e93c799a136f9
I added a "Requires: %{python} = %{version}-%{release}" to python-macros as the default unversioned macros use %{__python}, which would not be defined otherwise. But I think it doesn't matter if they are not defined in the python3 case as the build will just fail, when you use %py_build with python3-devel installed but not python2-devel. Do you think, that might be a solution and just the Requires above should be removed again?
I would remove that, yes. At least we won't get python2 bytecompiled files (in /usr/share etc.) in packages supposed to be run with python 3 only. Reassigning to python (where python-macros are from).
Building in rawhide: http://koji.fedoraproject.org/koji/taskinfo?taskID=10451086 I'll wait a bit until I backport this to F23 etc to see if this is the last fix to the new macros... :/
python-2.7.10-8.fc23 has been submitted as an update to Fedora 23. https://bodhi.fedoraproject.org/updates/FEDORA-2015-15394
python-2.7.10-8.fc23 has been pushed to the Fedora 23 testing repository. If problems still persist, please make note of it in this bug report.\nIf you want to test the update, you can install it with \n su -c 'yum --enablerepo=updates-testing update python'. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2015-15394
python-2.7.10-8.fc23 has been pushed to the Fedora 23 stable repository. If problems still persist, please make note of it in this bug report.