Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Drop setuptools runtime dependency? #5949

Closed
crusaderky opened this issue Mar 16, 2022 · 5 comments
Closed

Drop setuptools runtime dependency? #5949

crusaderky opened this issue Mar 16, 2022 · 5 comments

Comments

@crusaderky
Copy link
Collaborator

Now that we no longer use pkg_resources, can we drop the run-time dependency from setuptools altogether?

I see it used:

  • in setup.py (which is not runtime)
  • in versioneer.py, with a fallback to distutils if it's not already loaded. Unsure about the implications of this.
  • in a single test (test_upload_file_egg) which could have pytest.importorskip

Notably, setuptools is already not in requirements.txt. However, I can see it in the conda recipe:

run:
    [...]
    - setuptools <60.0.0

Not sure why? xref #5802 where it was added.

CC @graingert @charlesbluca

@charlesbluca
Copy link
Member

I did this to match up with a change made to the conda-forge feedstock: conda-forge/distributed-feedstock#192

cc @jsignell do we need to keep this constraint?

@jsignell
Copy link
Member

setuptools was already in the conda-forge recipe I just set a ceiling for it in conda-forge/distributed-feedstock#194 it would not surprise me if we don't in fact need it in the feedstock.

@jakirkham
Copy link
Member

Right I think this was due to the pkg_resources as @crusaderky points out. If we no longer need pkg_resources, then yes we should be able to drop setuptools as a dependency.

As to the version constraint on setuptools, there were a bunch of changes in 60.0.0, which broke various packages (distributed being one). So it was constrained. Again shouldn't be relevant if we are no longer using pkg_resources.

As to the egg case, I thought the optional PipInstall WorkerPlugin superseded that, but maybe I'm missing something there.

Anyways +1 on dropping setuptools

@jakirkham
Copy link
Member

Done in PR ( #5963 )

@jsignell
Copy link
Member

jsignell commented Mar 21, 2022

I didn't change the distributed-feedstock, but I am happy to in the next release. Nevermind! I see that @jakirkham dropped it before merging 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants