<div dir="ltr"><div dir="ltr">Hi Daniel,<div><br></div><div>I see what you mean, And I agree that gdal-utils should not be a dependency or an extra-dependency for gdal.</div><div><br></div><div>This issue would be relevant anyway only if we decide to remove the utils from the gdal sdist, which is not suggested by this RFC as some members didn't think it's preferable in the earlier discussion.</div><div>Regarding your reference to unofficial binary gdal-wheels, As they usually offer a binary form of the sdist I believe that it should be the equivalent of installing the sdist (i.e. if the utils are inside the sdist then they will be inside the unofficial binary wheels).</div><div>I do agree that all the difficulty to install the sdist from pypi (at least on Windows) is much bigger issue that we need to address (probably by offering binary wheels, at least for Windows) then the issue of people need to explicitly `pip install gdal-utils` if they want the utils.<br></div><div>I would advise that if the PSC members think it is a good idea to remove the utils outside the gdal sdist then maybe to add the warning in 3.3 and to execute it in 3.5 along with the other major cleanups.</div><div><br></div><div>Idan</div><div></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Thu, 25 Mar 2021 at 18:46, Daniel Evans <<a href="mailto:Daniel.Evans@jbarisk.com">Daniel.Evans@jbarisk.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang="EN-GB" style="overflow-wrap: break-word;">
<div class="gmail-m_2246831971819364131WordSection1">
<p class="MsoNormal"><span style="font-family:Arial,sans-serif">There’s also the option of using the “extra dependencies” functionality for Python packages, which is often used for including, well, extra features!<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif"><a href="https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#optional-dependencies" target="_blank">https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#optional-dependencies</a><u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif">Again, it’s not entirely the intended use case – the normal use is for real dependencies that enable/improve functionality of the base package – but perhaps a bit more
palatable.<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif">(I do wonder if worrying about how to tie it to the GDAL PyPI package is really a major point for many users, given the difficulty of installing and compiling it compared
to the pre-compiled packages from other sources. Will those changes affect those distributions, too?)<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<p class="MsoNormal"><b><span style="font-family:Arial,sans-serif;color:black">Dr Daniel Evans<u></u><u></u></span></b></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif;color:rgb(246,161,36)">Software Developer<u></u><u></u></span></p>
<p class="MsoNormal"><span style="font-family:Arial,sans-serif"><u></u> <u></u></span></p>
<div><table cellpadding="0" cellspacing="0" border="0" style="width:100%"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px 0px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;color:rgb(74,74,73);font-style:normal;font-weight:700;white-space:nowrap"><tbody><tr style="font-size:14.67px"><td align="left" style="padding:0px;vertical-align:top;font-family:Arial">e: <span style="font-family:remialcxesans;font-size:1px;color:rgb(255,255,255);line-height:1px"></span></td><td align="left" style="padding:0px 0px 0px 4px;vertical-align:top;color:rgb(246,161,36);font-family:Arial;font-weight:400"><a href="mailto:Daniel.Evans@jbarisk.com" id="gmail-m_2246831971819364131LPlnk689713" style="text-decoration:none;color:rgb(246,161,36)" target="_blank"><strong style="font-weight:400">Daniel.Evans@jbarisk.com</strong></a></td></tr><tr style="font-size:14.67px"><td align="left" style="padding:0px;vertical-align:top;font-family:Arial">t: </td><td align="left" style="padding:0px 0px 0px 4px;vertical-align:top;color:rgb(246,161,36);font-family:Arial;font-weight:400"><a href="tel:+44%20(0)1756%20799919" id="gmail-m_2246831971819364131LPlnk689713" style="text-decoration:none;color:rgb(246,161,36)" target="_blank"><strong style="font-weight:400">+44 (0)1756 799919</strong></a></td></tr><tr style="font-size:0px"><td align="left" style="padding:0px;vertical-align:top"></td><td align="left" style="padding:0px 0px 0px 4px;vertical-align:top"></td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="color:rgb(0,0,1);font-size:14.67px;font-style:normal;font-weight:400;white-space:nowrap"><td align="left" style="vertical-align:top;font-family:Arial"><a href="http://www.jbarisk.com/" id="gmail-m_2246831971819364131LPlnk689713" title="Click to visit our website" style="text-decoration:none;color:rgb(246,161,36)" target="_blank"><strong style="font-weight:400">www.jbarisk.com</strong></a></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px 0px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td rowspan="3" align="left" style="padding:0px 0px 5px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="width:100%;font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="padding:10px 0px 15px;vertical-align:top"><img src="cid:1786e570ebae8aafdcc1" height="52" border="0" alt="" style="height: 52px; min-height: 52px; max-height: 52px; font-size: 0px;"></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:0px 0px 12px;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="height:30px;font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="padding:0px 4px 5px 0px;vertical-align:top"><a href="https://www.facebook.com/TheFloodPeople" id="gmail-m_2246831971819364131LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:1786e570ebb28284cb92" width="34" border="0" title="Facebook" alt="Facebook" style="width: 34px; min-width: 34px; max-width: 34px; font-size: 12px;"></a></td></tr></tbody></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="padding:0px 4px 5px 0px;vertical-align:top"><a href="https://www.linkedin.com/company/jba-risk-management/" id="gmail-m_2246831971819364131LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:1786e570ebbc377eeca3" width="34" border="0" title="LinkedIn" alt="LinkedIn" style="width: 34px; min-width: 34px; max-width: 34px; font-size: 12px;"></a></td></tr></tbody></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="padding:0px 4px 5px 0px;vertical-align:top"><a href="https://twitter.com/JBARisk" id="gmail-m_2246831971819364131LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:1786e570ebb5e4f3374" width="34" border="0" title="Twitter" alt="Twitter" style="width: 34px; min-width: 34px; max-width: 34px; font-size: 12px;"></a></td></tr></tbody></table></td><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px;line-height:normal"><tbody><tr style="font-size:0px"><td align="left" style="padding:0px 4px 5px 0px;vertical-align:top"><a href="https://www.youtube.com/channel/UC0iatom2jYbW96voW0rlpCw" id="gmail-m_2246831971819364131LPlnk689713" style="text-decoration:none" target="_blank"><img src="cid:1786e570ebb9a14ca355" width="34" border="0" title="YouTube" alt="YouTube" style="width: 34px; min-width: 34px; max-width: 34px; font-size: 12px;"></a></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></td><td style="padding:0px"> </td></tr><tr style="font-size:0px"><td style="padding:0px"> </td></tr><tr style="font-size:0px"><td style="padding:0px"> </td></tr></tbody></table></td></tr></tbody></table></td></tr><tr style="font-size:0px"><td align="left" style="vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="font-size:0px"><tbody><tr style="font-size:0px"><td align="left" style="padding:7px 0px 5px;border-top:1px solid rgb(74,74,73);border-right:none;border-bottom:none;border-left:none;vertical-align:top"><table cellpadding="0" cellspacing="0" border="0" style="white-space:normal;color:rgb(68,68,68);font-size:14.67px;font-family:Calibri,Arial,sans-serif;font-weight:400;font-style:normal;text-align:left;line-height:12px"><tbody><tr style="font-size:9px"><td style="font-family:Arial"><span style="background-color:rgb(255,255,255)">All JBA Risk Management's email messages contain confidential information and are intended only for the individual(s) named. If you are not the named addressee you should not disseminate, distribute or copy this e-mail.</span><br><span style="background-color:rgb(255,255,255)">Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system.</span> <br><span style="background-color:rgb(255,255,255)">JBA Risk Management Limited is registered in England, company number 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD, England</span><span style="color:rgb(0,0,1)">.</span><br></td></tr></tbody></table></td></tr></tbody></table></td></tr></tbody></table></div><div style="border-right:none;border-bottom:none;border-left:none;border-top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US">From:</span></b><span lang="EN-US"> gdal-dev <<a href="mailto:gdal-dev-bounces@lists.osgeo.org" target="_blank">gdal-dev-bounces@lists.osgeo.org</a>>
<b>On Behalf Of </b>Idan Miara<br>
<b>Sent:</b> 25 March 2021 16:32<br>
<b>To:</b> Alan Snow <<a href="mailto:alansnow21@gmail.com" target="_blank">alansnow21@gmail.com</a>><br>
<b>Cc:</b> gdal dev <<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a>><br>
<b>Subject:</b> Re: [gdal-dev] Motion: RFC 78: gdal-utils package<u></u><u></u></span></p>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<p class="MsoNormal">Hi Alan,<u></u><u></u></p>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">pip install gdal-utils<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Will install also gdal as it is its dependency.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">In case we will take the utils out of the gdal sdist - Even tough your suggestion to add gdal-utils as a dependency to gdal would make `pip install gdal` to also install both, it makes less sense to me as gdal does not actually depend on
gdal-utils and it might complicate things in other ways. In that case, IMHO telling people who want to install the utils to pip install gdal-utils makes more sense...<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Idan<u></u><u></u></p>
</div>
</div>
<p class="MsoNormal"><u></u> <u></u></p>
<div>
<div>
<p class="MsoNormal">On Thu, 25 Mar 2021, 16:50 Alan Snow, <<a href="mailto:alansnow21@gmail.com" target="_blank">alansnow21@gmail.com</a>> wrote:<u></u><u></u></p>
</div>
<blockquote style="border-top:none;border-right:none;border-bottom:none;border-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin:5pt 0cm 5pt 4.8pt">
<div>
<div>
<div>
<p class="MsoNormal">> Removing the utils from the gdal sdist/wheel means that people who install gdal won't have the utils unless they installed the utils wheel.<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<div>
<p class="MsoNormal">You mentioned that gdal_utils is now on pypi. Are you able to set it as a dependency in the setup.py so it is installed when the main osgeo/gdal python package is installed?<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
<div>
<p class="MsoNormal">Best,<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal">Alan<u></u><u></u></p>
</div>
<div>
<p class="MsoNormal"><u></u> <u></u></p>
</div>
</div>
<p class="MsoNormal">_______________________________________________<br>
gdal-dev mailing list<br>
<a href="mailto:gdal-dev@lists.osgeo.org" target="_blank">gdal-dev@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/gdal-dev" target="_blank">https://lists.osgeo.org/mailman/listinfo/gdal-dev</a><u></u><u></u></p>
</blockquote>
</div>
</div>
</div>
</blockquote></div></div>