-
Notifications
You must be signed in to change notification settings - Fork 26.3k
Remove custom kwargs before calling BuildExtension.__init__(...) #149636
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
Conversation
Remove custom kwargs before calling BuildExtension.__init__(...)
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/149636
Note: Links to docs will display an error until the docs builds have been completed. ❌ 1 New FailureAs of commit 6e4a5cb with merge base 1d9401b ( NEW FAILURE - The following job has failed:
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
This PR needs a
|
Co-authored-by: Vincent Moens <[email protected]>
|
|
||
| self.use_ninja = kwargs.get('use_ninja', True) | ||
|
|
||
| filtered_kwargs = {kw: val for kw, val in kwargs.items() if kw not in ["no_python_abi_suffix", "use_ninja"]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I wonder if better way to address that is to define user_options (or boolean_options)
Not sure how long something like that were supported though, see https://github.com/pypa/setuptools/blob/7c859e017368360ba66c8cc591279d8964c031bc/setuptools/_distutils/command/build_ext.py#L100
|
|
||
| self.use_ninja = kwargs.get('use_ninja', True) | ||
|
|
||
| filtered_kwargs = {kw: val for kw, val in kwargs.items() if kw not in ["no_python_abi_suffix", "use_ninja"]} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit should use tuple or set for contains check. Set should be optimized since it's a check against literal strings.
…it__(...) (#2002) Port fix from pytorch#149636 Update to torchvision branch https://github.com/ROCm/vision/tree/release/0.15 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.0-manylinux-wheels_rel-6.4/32/ --------- Co-authored-by: Jithun Nair <[email protected]>
…t__(...) (#2003) Port fix from pytorch#149636 Update to torchvision branch https://github.com/ROCm/vision/tree/release/0.18 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.3-manylinux-wheels_rel-6.4/29/ --------- Co-authored-by: Jithun Nair <[email protected]>
…it__(...) (#2006) Port fix from pytorch#149636 Update to torchvision branch https://github.com/ROCm/vision/tree/release/0.19 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.4-manylinux-wheels_rel-6.4/33/ --------- Co-authored-by: Jithun Nair <[email protected]>
…it__(...) (#2004) Port fix from pytorch#149636 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.5-manylinux-wheels_rel-6.4/45/ Co-authored-by: Jithun Nair <[email protected]>
…it__(...) (#2005) Port fix from pytorch#149636 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.6-manylinux-wheels_rel-6.4-preview/22/ Co-authored-by: Jithun Nair <[email protected]>
|
@janeyx99 This PR is still open, but the fix in this PR was helpful for us to workaround some build issues on our end. Is there a plan to merge this PR, or has an alternative fix been put in place? |
|
@jithunnair-amd Ah I had put this on the backburner given that setuptools was updated and the workaround was working. I can prioritize landing a more sustainable long term solution if there are people waiting on this PR |
…it__(...) (#2005) Port fix from pytorch#149636 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.6-manylinux-wheels_rel-6.4-preview/22/ Co-authored-by: Jithun Nair <[email protected]> (cherry picked from commit 7ad5a0a)
…it__(...) (#2005) Port fix from pytorch#149636 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.6-manylinux-wheels_rel-6.4-preview/22/ Co-authored-by: Jithun Nair <[email protected]> (cherry picked from commit 7ad5a0a)
@janeyx99 Could you please provide some links for the fix you refer to: "given that setuptools was updated and the workaround was working"? |
|
Ah I just mean the newer setuptools don't have the issue: https://pypi.org/project/setuptools/ |
…it__(...) (#2005) Port fix from pytorch#149636 Validation:http://rocm-ci.amd.com/view/Release-6.4/job/pytorch2.6-manylinux-wheels_rel-6.4-preview/22/ Co-authored-by: Jithun Nair <[email protected]> (cherry picked from commit 7ad5a0a)
|
Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as |
Remove custom kwargs before calling
BuildExtension.__init__(...)This should fix what is going on in https://fb.workplace.com/chat/t/100068823519463#:~:text=https%3A//github.com/pytorch/rl/actions/runs/13974012630/job/39123001095
cc @vmoens