Retirement tax questions

Since alimony is considered compensation for IRA purposes I can make an IRA contribution/deduction with just alimony income; however, if the feds aren't taxing the alimony I can't. California does not conform to non-taxability of Alimony so I should be able to make an IRA contribution for California purposes. In this instance wouldn't my basis be different?