Skip to content

Conversation

@janeyx99
Copy link
Contributor

@janeyx99 janeyx99 commented Mar 20, 2025

Remove custom kwargs before calling BuildExtension.__init__(...)
@pytorch-bot
Copy link

pytorch-bot bot commented Mar 20, 2025

🔗 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 Failure

As of commit 6e4a5cb with merge base 1d9401b (image):

NEW FAILURE - The following job has failed:

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

@github-actions
Copy link
Contributor

This PR needs a release notes: label

If your changes are user facing and intended to be a part of release notes, please use a label starting with release notes:.

If not, please add the topic: not user facing label.

To add a label, you can comment to pytorchbot, for example
@pytorchbot label "topic: not user facing"

For more information, see
https://github.com/pytorch/pytorch/wiki/PyTorch-AutoLabel-Bot#why-categorize-for-release-notes-and-how-does-it-work.


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"]}
Copy link
Contributor

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"]}
Copy link
Collaborator

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.

jithunnair-amd added a commit to ROCm/pytorch that referenced this pull request Mar 26, 2025
ethanwee1 pushed a commit to ROCm/pytorch that referenced this pull request Mar 26, 2025
ethanwee1 pushed a commit to ROCm/pytorch that referenced this pull request Mar 26, 2025
ethanwee1 pushed a commit to ROCm/pytorch that referenced this pull request Mar 26, 2025
ethanwee1 pushed a commit to ROCm/pytorch that referenced this pull request Mar 26, 2025
@jithunnair-amd
Copy link
Collaborator

@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?

@janeyx99
Copy link
Contributor Author

@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

@jithunnair-amd
Copy link
Collaborator

jithunnair-amd commented Apr 24, 2025

given that setuptools was updated and the workaround was working

@janeyx99 Could you please provide some links for the fix you refer to: "given that setuptools was updated and the workaround was working"?

@janeyx99
Copy link
Contributor Author

Ah I just mean the newer setuptools don't have the issue: https://pypi.org/project/setuptools/

@github-actions
Copy link
Contributor

Looks like this PR hasn't been updated in a while so we're going to go ahead and mark this as Stale.
Feel free to remove the Stale label if you feel this was a mistake.
If you are unable to remove the Stale label please contact a maintainer in order to do so.
If you want the bot to never mark this PR stale again, add the no-stale label.
Stale pull requests will automatically be closed after 30 days of inactivity.

@github-actions github-actions bot added the Stale label Jun 23, 2025
@github-actions github-actions bot closed this Jul 23, 2025
@github-actions github-actions bot deleted the comply-with-setuptools branch August 23, 2025 02:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants