<p></p>
<blockquote>
<p>So first question, what should <code>configure.ac</code> test for, <code>python3</code>? And is the windows <code>py</code> still relevant?</p>
</blockquote>
<p>I just tested the Python 3.9 installer and it still installs the <code>py</code> launcher by default but not the real binaries.So, nothing has changed and the <code>py</code> launcher still seems like a good default for the filetype configuration.<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/617017/133691318-60ce8284-13d3-4fff-8ef4-158de47df3bb.png"><img src="https://user-images.githubusercontent.com/617017/133691318-60ce8284-13d3-4fff-8ef4-158de47df3bb.png" alt="py39-win" style="max-width: 100%;"></a><br>
(Btw, this installer is executed via Wine.)</p>
<blockquote>
<p><code>gen_api_gtkdoc.py</code> has had lots of contributors, so anybody know if it will run on python3?</p>
</blockquote>
<p>Of course it does.<br>
My Linux machine has no Python2 installed and I still can build Geany :).<br>
I'm not completely sure but I think the MSYS2 installation on my Windows machine also has no Python2 installed.</p>
<blockquote>
<blockquote>
<p>It should test for "python" first, and then execute python -V to get the version and test for "version > 3". If either fails, it should  test for "python3" and accept any version. If that fails it should report that it requires a "python version > 3".</p>
</blockquote>
<p>The Python PEP requires the versioned <code>python3</code> command to be installed even if <code>python</code> is also installed, so I don't see the point of such complications, especially trying to do it in autoconf m4. If we require python3 say so and test for it.</p>
</blockquote>
<p>Let's check for and use <code>python3</code> generally. As Lex said, if Python3 is available, it is available as <code>python3</code> at the very least.</p>
<blockquote>
<blockquote>
<p>Unless we make a pure windows build using the Microsoft tool chain, we should not look for "py".</p>
</blockquote>
</blockquote>
<p>Don't mix different things here.<br>
The whole thing about the <code>py</code> check is for the default value in `data/filedefs/filetypes.python.in. This is a configuration file.</p>
<blockquote>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/eht16/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eht16">@eht16</a> which Python does the new windows build use, one in msys2 that is called <code>python3</code> or a Windows install that still needs <code>py</code>? Can we drop the <code>py</code>?</p>
</blockquote>
<p>The <code>py</code> launcher is not used when building Geany. The MSYS2 Windows builds (natively on a Windows machine as well as the cross builds) use normal <code>python(|2|3)</code> commands, in all their variants but in the same way as on non-Windows.<br>
To be clear, the official Python installer nor the <code>py</code> launcher is necessary for building Geany. We use MSYS2 packages exclusively.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/geany/geany/issues/2896#issuecomment-921284093">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ6UD2Y6WQ4JWFRXNBDUCJSIFANCNFSM5EBFYBOA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJ6OHGMBIUXEXDHCDGDUCJSIFA5CNFSM5EBFYBOKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG3U237I.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2896#issuecomment-921284093",
"url": "https://github.com/geany/geany/issues/2896#issuecomment-921284093",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>