Years of embargoes and sanctions imposed on them by the UN and other countries due to the racial tensions and apartheid, has made them mostly self-reliant (but certainly there were questionable business associates in other countries who aided them...like with the locally built Cheetah fighter, a Mirage knock-off along the lines of the Israeli Kfir.)