The eventual winner of a primary season which has lasted much longer than most observers expected will be set to take on the Republican John McCain in November 's general election to become the leader of the free world .