Fix: replace pkg_resources with importlib.metadata for setuptools 82+ by junagent · Pull Request #2144 · GPflow/GPflow
… compatibility Fixes GPflow#2143 pkg_resources was removed from setuptools 82.0.0 (PEP 740). This broke gpflow at runtime - 'import gpflow' fails with: ModuleNotFoundError: No module named 'pkg_resources' Replace pkg_resources.get_distribution() with importlib.metadata.version(), which is the stdlib equivalent available since Python 3.8. Verification: - 'import gpflow' works without pkg_resources - __version__ correctly returns the installed version - Falls back to 'develop' when installed in editable mode