<table border="1" cellspacing="0" cellpadding="8">
    <tr>
        <th>Issue</th>
        <td>
            <a href=https://github.com/llvm/llvm-project/issues/54575>54575</a>
        </td>
    </tr>

    <tr>
        <th>Summary</th>
        <td>
            Python3_EXECUTABLE not set in config-ix.cmake
        </td>
    </tr>

    <tr>
      <th>Labels</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Assignees</th>
      <td>
      </td>
    </tr>

    <tr>
      <th>Reporter</th>
      <td>
          nidefawl
      </td>
    </tr>
</table>

<pre>
    This include 
https://github.com/llvm/llvm-project/blob/1fd118ffc4b8d72d372de0fdbc5024ecf3dd3948/llvm/CMakeLists.txt#L733
happens before
https://github.com/llvm/llvm-project/blob/1fd118ffc4b8d72d372de0fdbc5024ecf3dd3948/llvm/CMakeLists.txt#L777-L778

This results in config-ix using an uninitialized `${Python3_EXECUTABLE}`

When running cmake configuration I see 
> -- Could NOT find Python module pygments
> -- Could NOT find Python module pygments.lexers.c_cpp
> -- Could NOT find Python module yaml

Followed by 
> -- Found Python3: C:/dev/bin/Python311/python3.exe (found suitable version "3.11.0", minimum required is "3.0") found components: Interpreter

And LLVM_MINIMUM_PYTHON_VERSION is only set once HandleLLVMOptions is included. 

I just moved things around to get rid of noise locally.


</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJzNU01zmzAQ_TVw0ZgBBAEfODiOM_GMPzKtk7Ynj0ALViokiiQ37q_vgvPhTi_NrTOwWs1q3z7tW5Wan4rdQRgiVCUdB-KFN144O1jbGY_OvPgWv0bYgyuDSre4kfL4uky6Xj9BZXFbSl3iEtU8ivK6rpIy51nMKf4Q1rys0jBOoKop53Sa5O848zX7DithrAnsMyLRVUbpCwnWdaAMKaHWPfwHxLJsgiY_MznbsXc9GCft0ENSaVWLZiKeiTNCNYQp4pRQwgomxS_gxLsKvTjxsuv7kz1oRfeLr4v5w252vVp42c0QvUD_cgBFeqfUAFW1SOilgOuZFVqRJTHwqplHF2QyIXPtJCeb7Y7UQnFyLkNazZ0E0p2aFpQ1H88IJDxDb4JqX3Xdv6efWCsvb3SrpdQ_sQ_l6U_at9q9JVMUmMzPKnM4DioKhfYlGkXod2c_QFbEi_N6TDdOWFZi2SNSHfrjxTENoijAnsdePCctStG6FhX74USPNFC98cz5wJSccXCgOq3GRiGTpbLQdz2gvbzKDA-uVo_r_Xq5Wa4f1vv7b7u77Wb_uPj0ebndDNBayRMqZNGpgNwxxSUMKdtuUM-Q93fHA3KJvSRPzlhs4hE52gPKbwjrR25WkwYRe8GJronSwgCRumJSnoJLCJ8XlE_plPlWWAnF3_OGyXZkdzm3wThmvutl8eG3JoxxYNBJkzRL_UNRsTqCrEqT_CqkUVomYUUTxsMygpJF6ZUvWQnSFF567aU3vijiMI5DGmchDXOaB1U6raM8S3ic5TSDxEtCaJmQwVA40H3j98XIoXSNwaAcn-tbkBkjGgXwis8ctqAvlOBQs5_SH_kWI9nfCRiZsg">