The additional versions are already searched for in current versions of cmake, the code block that was removed had to do with multi-arch setups where distros move pyconfig to an arch specific directory and have the rest of python in a common directory. this has only started to be done with 3.3. cmake hasn't yet been updated to include both dirs in it's python module yet. hardcoding these should be pretty safe whether they exist or not in the conditional. better fix would be to actually check and make sure they match the version of python found in case there are many