Neither party to an obligation can be compelled specifically to perform it, unless the other party thereto has performed, or is compellable specifically to perform, everything to which the former is entitled under the same obligation, either completely or nearly so, together with full compensation for any want of entire performance.
SDCL 21-9-4