I use reversible clamps (so they press outwards) to push the electric motor and hold it there while you eyeball the alignment.
And if you want to be **** about it, you can put a straight edge on the pulley to make sure it's inline with the pump pulley. If the pulleys are different widths, put the straight edge on both sides of the electric motor pulley and look where it lines up on the pump pulley. If you can't get a straight edge on the inside of the electric pulley, put the straight edge on the (probably fatter) pump pulley, and look at the the gap at the close and far side of the electric motor pulley. If that makes sense. Tap the electric motor with a hammer till it looks/measures right.
I did that the first time with the straight edge. Probably not needed, so now I just push it with the clamps, eyeball it from the side, tap it (if needed), then tighten the electric motor bolts.