A 2000 MSL at 40 deg C in a 152, the performance charts say you need 2000 feet to get to 50 AGL at max gross.
That's a 6000 foot runway at 1500 MSL. Should not be a problem. Even if you double the requirements.
Either something was wrong with the airplane, or you were overloaded. Real easy to do on a 152. Perhaps wrong technique. You should lean on the ground if it's that hot. Above 3000 DA in a 152. And 10 deg flaps.
The obvious problem is that it's next to impossible to fly a 152 150 lb below max gross with two people. The basic empty weight is 1136 (stock) and the max gross is 1670. That's 535 lb to play with. Take off 150, and you're down to 380. Add 20 gal of fuel (2 hours round trip, plus 1 hour reserve), and you're at 260.