Update the version of ninja and scipy (#40677)
Summary:
Update scipy to 1.15 and ninja to 1.10.
Pull Request resolved: https://github.com/pytorch/pytorch/pull/40677
Differential Revision: D22311602
Pulled By: ezyang
fbshipit-source-id: ddc852b3b8c3091409d1b3bd579dd144b58e5d47