Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Conversation

@antoinebrl
Copy link
Contributor

Description

setuptools is no longer available by default starting in Python 3.12. As such, distutils is no longer available. setuptools still comes as part of torch, making it a transitive dependency for torchrl. While setuptools and distutils can still be used as part of the build process, this PR removes all distutils imports inside the code. Effectively, it is only about re-implementing the helper function strtobool.

@pytorch-bot
Copy link

pytorch-bot bot commented Mar 6, 2025

🔗 Helpful Links

🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/rl/2836

Note: Links to docs will display an error until the docs builds have been completed.

This comment was automatically generated by Dr. CI and updates every 15 minutes.

@facebook-github-bot facebook-github-bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Mar 6, 2025
@vmoens vmoens added the setup Has to do with installation label Mar 7, 2025
Copy link
Collaborator

@vmoens vmoens left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM
maybe that will be needed in tensordict too?

@vmoens vmoens changed the title Remove distutils imports [Setup] Remove distutils imports Mar 7, 2025
@vmoens vmoens merged commit 4c55b65 into pytorch:main Mar 7, 2025
43 of 58 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. setup Has to do with installation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants