We construct black hole attractor solutions for a wide class of N = 2 compactifications. The analysis is carried out in ten dimensions and makes crucial use of pure spinor techniques. This formalism can accommodate non-Kähler manifolds as well as compactifications with flux, in addition to the usual Calabi-Yau case. At the attractor point, the charges fix the moduli according to f k = Im (CΦ), where Φ is a pure spinor of odd (even) chirality in IIB (A). For IIB on a Calabi-Yau, Φ = Ω and the equation reduces to the usual one. Methods in generalized complex geometry can be used to study solutions to the attractor equation.