Skip to content

Comments

Quick (and dirty) fix to be able to install hydra despite pkg_ressources-gate#3132

Open
jmichel-otb wants to merge 2 commits intofacebookresearch:mainfrom
jmichel-otb:main
Open

Quick (and dirty) fix to be able to install hydra despite pkg_ressources-gate#3132
jmichel-otb wants to merge 2 commits intofacebookresearch:mainfrom
jmichel-otb:main

Conversation

@jmichel-otb
Copy link

Motivation

This is only a quick fix to allow downstream projects to install hydra again :(

Closes #3131 by removing the dependency to pkg_ressources.parse_requirements and import the content of requirements/requirements.txt directly instead of parsing it.

There might be better way to fix this, such as completely removing setup.py and write a fully-fledged pyproject.toml instead.

Have you read the Contributing Guidelines on pull requests?

No

Test Plan

See minimal example in #3131

Related Issues and PRs

#3131

…ssources-gate

Fixes facebookresearch#3131 by
removing the dependency to pkg_ressources.parse_requirements and
import the content of requirements/requirements.txt directly instead
of parsing it.

There might be better way to fix this, such as completely removing
setup.py and write a fully-fledged pyproject.toml instead.

This is only a quick fix to allow downstream projects to install hydra
again :(
@meta-cla
Copy link

meta-cla bot commented Feb 12, 2026

Hi @jmichel-otb!

Thank you for your pull request and welcome to our community.

Action Required

In order to merge any pull request (code, docs, etc.), we require contributors to sign our Contributor License Agreement, and we don't seem to have one on file for you.

Process

In order for us to review and merge your suggested changes, please sign at https://code.facebook.com/cla. If you are contributing on behalf of someone else (eg your employer), the individual CLA may not be sufficient and your employer may need to sign the corporate CLA.

Once the CLA is signed, our tooling will perform checks and validations. Afterwards, the pull request will be tagged with CLA signed. The tagging process may take up to 1 hour after signing. Please give it that time before contacting us about it.

If you have received this in error or have any questions, please contact us at cla@meta.com. Thanks!

  /tmp/pip-build-env-soxj_9x5/overlay/lib/python3.12/site-packages/setuptools/dist.py:765: SetuptoolsDeprecationWarning: License classifiers are deprecated.
  !!

          ********************************************************************************
          Please consider removing the following classifiers in favor of a SPDX license expression:

          License :: OSI Approved :: MIT License

          See https://packaging.python.org/en/latest/guides/writing-pyproject-toml/#license for details.
          ********************************************************************************

  !!
@jmichel-otb
Copy link
Author

@meta-hydra-bot I apologize but I am not going to sign a CLA just for this quick fix of 3 lines of code. I hope that the hydra team will make a proper fix for this problem, and in the mean time I share my workaround.

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

Successfully merging this pull request may close these issues.

[Bug] Setuptools has removed pkg_resources

1 participant