Skip to content

St-dbscan Fails to Build With New Version of Setuptools #15

Description

@elfjones

Installing st-dbscan==0.2.3 fails when using a newer version of setuptools(>=82.0). This occurs during the build step due to the removal of pkg_resources from setuptools.

ModuleNotFoundError: No module named 'pkg_resources'

Which originates in the package's setup.py:

from pkg_resources import VersionConflict, require

try:
    require('setuptools>=38.3')
except VersionConflict:
    print("Error: version of setuptools is too old (<38.3)!")
    sys.exit(1)

Root Cause

  • pkg_resources is now deprecated and removed from setuptools>=82
  • but package still depends on pkg_resources.require() for version checking
  • Build fails in modern envs, especially with pip's build isolation

Suggested Fix

  • Remove pkg_resources dependencies
  • and move to updated packaging standards by adding a pyproject.toml

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions