How to view the commands that were used to build a Pytorch wheel?

I’m trying to figure out what settings were used to build a particular Pytorch wheel. Is there any way to tell?

The reason is, I’d like to be able to build Pytorch from source, while closely following the official build configuration.

The pytorch/builder repository contains the code used to build the binaries so you might want to take a look at it.