jswhit / pygrib

Python interface for reading and writing GRIB data
https://jswhit.github.io/pygrib
MIT License
319 stars 93 forks source link

Missing dependency on setuptools resulting in ModuleNotFoundError #228

Closed noritada closed 4 months ago

noritada commented 4 months ago

Using the development version results in ModuleNotFoundError due to missing dependency on setuptools. Release versions (at least latest 2.1.5) do not have this problem. Since I have already fixed this issue, I will send a PR later.

Steps to reproduce

% rye init
% rye add pygrib --path /path/to/repo
% rye sync
% rye run python -c 'import pygrib'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
  File "/path/to/project/.venv/lib/python3.12/site-packages/pygrib/__init__.py", line 2, in <module>
    from ._pygrib import *
  File "src/pygrib/_pygrib.pyx", line 12, in init pygrib._pygrib
ModuleNotFoundError: No module named 'pkg_resources'