Skip to content

Introducing a pkg_resources package for setuptools >=82 compatibility #2886

Description

@mgorny

Your question:

Setuptools 82 removed the pkg_resources package. However, a lot of packages out there still require it. Right now, feedstocks are starting to pin setuptools <82 which is a suboptimal solution.

Upstream has shown some understanding for the request to package it separately back in February, but things didn't move much from there.

To ease things on CF side, I'd like to propose creating our own pkg_resources package with the code from setuptools 81.0.0 release. The way I see it, we could either:

  • create it as a separate feedstock
  • create it as an additional output in setuptools-feedstock

Either way, I'm willing to step up as the maintainer. In the latter case, I'd propose branching setuptools-feedstock at 81.0.0, and creating a new build split to two outputs: setuptools and pkg_resources. For backwards compatibility, setuptools 81.0.0 would then run-depend on pkg_resources.

In my opinion, the two important advantages of doing that would be:

  1. Avoiding proliferating the pin all over the place.
  2. Avoiding a run-dependency on whole setuptools (additionally pinned to an old version) where only pkg_resources are necessary.

If upstream eventually releases a separate pkg_resources package, we can replace our own with it.

Disclaimer: I've done the same thing in Gentoo, and it has worked well for us so far.

CC @conda-forge/setuptools

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions