Is there a way to dynamically check the version of a package installed system wide and set that as a package dependency in the pyproject.toml? Specially, I need to check if a person already has GDAL installed system wide and if they do, set the python gdal version to that. If I were manually installing the gdal python package, I could do something like below, I just don't know if its possible to set it on the fly/dynamically in the toml.
pip install GDAL==`gdal-config --version`