Writing textbooks is political, but the battle starts much earlier, already in hiring - University of California requires all new hires to submit a political litmus test [1]. A story which, I couldn't help but notice, the New York Times failed to cover.
[1] https://www.insidehighered.com/news/2019/11/19/mathematician...