[gdal-dev] Motion: RFC 78: gdal-utils package

Daniel Evans Daniel.Evans at jbarisk.com
Thu Mar 25 09:46:42 PDT 2021


There’s also the option of using the “extra dependencies” functionality for Python packages, which is often used for including, well, extra features!

https://setuptools.readthedocs.io/en/latest/userguide/dependency_management.html#optional-dependencies

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.

(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?)

Dr Daniel Evans
Software Developer


e: Daniel.Evans at jbarisk.com
t: +44 (0)1756 799919
www.jbarisk.com
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.
Please notify the sender immediately by email if you have received this email by mistake and delete this email from your system. 
JBA Risk Management Limited is registered in England, company number 07732946, 1 Broughton Park, Old Lane North, Broughton, Skipton, North Yorkshire, BD23 3FD, England.
From: gdal-dev <gdal-dev-bounces at lists.osgeo.org> On Behalf Of Idan Miara
Sent: 25 March 2021 16:32
To: Alan Snow <alansnow21 at gmail.com>
Cc: gdal dev <gdal-dev at lists.osgeo.org>
Subject: Re: [gdal-dev] Motion: RFC 78: gdal-utils package

Hi Alan,

pip install gdal-utils
Will install also gdal as it is its dependency.

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...

Idan

On Thu, 25 Mar 2021, 16:50 Alan Snow, <alansnow21 at gmail.com<mailto:alansnow21 at gmail.com>> wrote:
> 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.

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?

Best,
Alan

_______________________________________________
gdal-dev mailing list
gdal-dev at lists.osgeo.org<mailto:gdal-dev at lists.osgeo.org>
https://lists.osgeo.org/mailman/listinfo/gdal-dev
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210325/b7440d3e/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image429892.png
Type: image/png
Size: 9886 bytes
Desc: image429892.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210325/b7440d3e/attachment-0005.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image302987.png
Type: image/png
Size: 651 bytes
Desc: image302987.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210325/b7440d3e/attachment-0006.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image207250.png
Type: image/png
Size: 715 bytes
Desc: image207250.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210325/b7440d3e/attachment-0007.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image972005.png
Type: image/png
Size: 966 bytes
Desc: image972005.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210325/b7440d3e/attachment-0008.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image431562.png
Type: image/png
Size: 784 bytes
Desc: image431562.png
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20210325/b7440d3e/attachment-0009.png>


More information about the gdal-dev mailing list