Skip to content

setup.py pkg_resources is incompatible with Setuptools 82 #1234

@cho-m

Description

@cho-m

Describe the bug
pkg_resources usage in setup.py is incompatible with latest Setuptools 82.0.0 so cannot install from sdist or repository with build isolation.

import pkg_resources

To Reproduce
In virtualenv, can try installing PyPI sdist or git repository:

pip install --no-binary :all: omegaconf
Collecting omegaconf
  Downloading omegaconf-2.3.0.tar.gz (3.3 MB)
...
        File "<string>", line 13, in <module>
      ModuleNotFoundError: No module named 'pkg_resources'
      [end of output]
pip install git+https://github.com/omry/omegaconf.git
Collecting git+https://github.com/omry/omegaconf.git
...
      ModuleNotFoundError: No module named 'pkg_resources'
      [end of output]

Expected behavior
Successful installation.

This is needed in Homebrew where we do not use wheels. Seen as a dependency of bbot:

Additional context

  • OmegaConf version: 2.3.0
  • Python version: 3.14.3
  • Operating system: macOS 26
  • Please provide a minimal repro

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions