<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
<pre wrap="" class="moz-quote-pre"><blockquote type="cite"><pre
wrap="" class="moz-quote-pre">In the qgis sources, look at CMakeLists and see what the minimum python
version is. Stick to that. Really; it's that simple.</pre></blockquote>
</pre>
<p>Oh, okay, I didn't know that. Thank you very much!<br>
</p>
<p></p>
<div class="moz-signature">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<title></title>
<div class="moz-signature">
<meta name="ProgId" content="Word.Document">
<meta name="Generator" content="Microsoft Word 15">
<meta name="Originator" content="Microsoft Word 15">
<style>@font-face
{font-family:"Cambria Math";
panose-1:2 4 5 3 5 4 6 3 2 4;
mso-font-charset:0;
mso-generic-font-family:roman;
mso-font-pitch:variable;
mso-font-signature:-536869121 1107305727 33554432 0 415 0;}@font-face
{font-family:Aptos;
mso-font-charset:0;
mso-generic-font-family:swiss;
mso-font-pitch:variable;
mso-font-signature:536871559 3 0 0 415 0;}p.MsoNormal, li.MsoNormal, div.MsoNormal
{mso-style-unhide:no;
mso-style-qformat:yes;
mso-style-parent:"";
margin-top:0cm;
margin-right:0cm;
margin-bottom:8.0pt;
margin-left:0cm;
line-height:107%;
mso-pagination:widow-orphan;
font-size:11.0pt;
font-family:"Aptos",sans-serif;
mso-ascii-font-family:Aptos;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Aptos;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Aptos;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;
mso-font-kerning:1.0pt;
mso-ligatures:standardcontextual;
mso-fareast-language:EN-US;}a:link, span.MsoHyperlink
{mso-style-priority:99;
color:#467886;
mso-themecolor:hyperlink;
text-decoration:underline;
text-underline:single;}a:visited, span.MsoHyperlinkFollowed
{mso-style-noshow:yes;
mso-style-priority:99;
color:#96607D;
mso-themecolor:followedhyperlink;
text-decoration:underline;
text-underline:single;}.MsoChpDefault
{mso-style-type:export-only;
mso-default-props:yes;
font-size:11.0pt;
mso-ansi-font-size:11.0pt;
mso-bidi-font-size:11.0pt;
mso-ascii-font-family:Aptos;
mso-ascii-theme-font:minor-latin;
mso-fareast-font-family:Aptos;
mso-fareast-theme-font:minor-latin;
mso-hansi-font-family:Aptos;
mso-hansi-theme-font:minor-latin;
mso-bidi-font-family:"Times New Roman";
mso-bidi-theme-font:minor-bidi;
mso-fareast-language:EN-US;}.MsoPapDefault
{mso-style-type:export-only;
margin-bottom:8.0pt;
line-height:107%;}div.WordSection1
{page:WordSection1;}</style></div>
</div>
<div class="moz-cite-prefix">El 09/04/2025 a las 18:08, Greg Troxel
via QGIS-Developer escribió:<br>
</div>
<blockquote type="cite" cite="mid:rmizfgpfhcf.fsf@s1.lexort.com">
<pre wrap="" class="moz-quote-pre">Sergi Maspons - BGEO via QGIS-Developer <a class="moz-txt-link-rfc2396E" href="mailto:qgis-developer@lists.osgeo.org"><qgis-developer@lists.osgeo.org></a>
writes:
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">I was wondering, is there a rule for which python version comes with
each QGIS version?
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
No. qgis is in general built from source, and will support multiple
versions, from some minimum to some max. Each binary package
constructed from those sources will use a particular version.
It is therefore not meaningful to say that a version of qgis comes with
a specific python version.
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">It would be very useful for developing plugins, because I thought that
from QGIS 3.34 onwards it comes with Python 3.12. But I installed
qgis-ltr (3.40.5) on debian and saw that it came with Python 3.11.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
Presumably Debian 12, and operating system distributions tend to stay at
the python version they started with. Python moves a bit too quickly.
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">Is there a minimum Python version that all plugins should use? We've
been using new syntax added on newer versions of Python thinking that
if the latest QGIS release comes with a certain Python version, I
could assume that my plugin (if I only want to support the last two
LTR) must work with that python version.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
In the qgis sources, look at CMakeLists and see what the minimum python
version is. Stick to that. Really; it's that simple.
</pre>
<blockquote type="cite">
<pre wrap="" class="moz-quote-pre">To summarize:
- In my Windows machine, I have both QGIS 3.40.4 & 3.34.15 and they
both come with Python 3.12, therefore I assumed our plugin could use
Python 3.12 syntax and features.
- In a Debian machine, I installed QGIS 3.40.5 and it came with Python
3.11.2.
</pre>
</blockquote>
<pre wrap="" class="moz-quote-pre">
Those are two data points and that does not establish that there could
not reasonably be a build of 3.40 with 3.10. There are lots of "Laggard
Term Stable" distributions out there and they tend to have older
versions of ~everything in base.
It might be that 3.40's CMakeLists specifies 3.10 as minimum.
_______________________________________________
QGIS-Developer mailing list
<a class="moz-txt-link-abbreviated" href="mailto:QGIS-Developer@lists.osgeo.org">QGIS-Developer@lists.osgeo.org</a>
List info: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
Unsubscribe: <a class="moz-txt-link-freetext" href="https://lists.osgeo.org/mailman/listinfo/qgis-developer">https://lists.osgeo.org/mailman/listinfo/qgis-developer</a>
</pre>
</blockquote>
</body>
</html>