pynetbox icon indicating copy to clipboard operation
pynetbox copied to clipboard

missing setuptools dependency

Open Nothing4You opened this issue 3 years ago • 0 comments

pynetbox currently depends on setuptools being available, but it does not declare setuptools as runtime dependency:

https://github.com/netbox-community/pynetbox/blob/944a44761650b0e3d1791ef0180e1dcb79877b4b/pynetbox/init.py#L1

pkg_resources is provided by setuptools.

I see 3 ways to solve this:

  1. wrap in try block, catching ImportError
  2. add explicit setuptools dependency
  3. migrate to importlib alternatives as recommended in https://setuptools.pypa.io/en/latest/pkg_resources.html, this can be combined with 1 or 2 (for backported implementations) on older python versions.

Nothing4You avatar Feb 21 '22 08:02 Nothing4You