Revert "remove use of tmp_install" (#15847)
Summary:
This reverts commit 04bf5285896e52ac118d2f9e9b7f582f695f13e2.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/15847
Differential Revision: D13603174
Pulled By: anderspapitto
fbshipit-source-id: ae321434d3345ad94fad67bf71fd027cddeb4588