[cmake] Remove unnecessary install when generating a python package.

18 jobs for master in 22 minutes and 36 seconds (queued for 2 seconds)