Not so much politics. F-35 was unqualified on grounds of inability to meet schedule, inability to perform in-country demonstrations, impracticality of necessary technology transfer, and no doubt many other reasons.
However, I believe that if Obama had promised the mighty F35 to India they could have been willing to wait a few more years to get a 5th gen fighter.
Other countries are already facing capabilities gaps while they are expecting the F35...