-
Notifications
You must be signed in to change notification settings - Fork 24.3k
[CMAKE] Look for Development.Module
instead of Development
#129669
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
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/129669
Note: Links to docs will display an error until the docs builds have been completed. ✅ No FailuresAs of commit a92b687 with merge base 1e61cb8 ( This comment was automatically generated by Dr. CI and updates every 15 minutes. |
@malfet would you please review this? |
Is it possible to land this on main before 1/7 so we can backport it to 2.4? I've created a simple example that triggers this:
gives:
|
@pytorchbot merge -i |
Merge failedReason: This PR needs a If not, please add the To add a label, you can comment to pytorchbot, for example For more information, see Details for Dev Infra teamRaised by workflow job |
@pytorchbot label "topic: not user facing" |
@malfet Would you mind merge again? |
@pytorchmergebot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
Merge failedReason: 1 mandatory check(s) failed. The first few are: Dig deeper by viewing the failures on hud |
@pytorchbot help |
❌ 🤖 pytorchbot command failed:
Try |
@pytorchbot --help |
PyTorchBot Help
Merge
Revert
Rebase
Label
Dr CI
cherry-pick
Closeusage: @pytorchbot close Close a PR [Can be used on issues] |
@pytorchbot drci |
@pytorchbot rebase |
@pytorchbot started a rebase job onto refs/remotes/origin/viable/strict. Check the current status here |
Successfully rebased |
b7f402e
to
a92b687
Compare
@pytorchbot merge -i |
|
@pytorchmergebot merge |
Merge startedYour change will be merged once all checks pass (ETA 0-4 Hours). Learn more about merging in the wiki. Questions? Feedback? Please reach out to the PyTorch DevX Team |
…ch#129669) Based on the [cmake issue](https://gitlab.kitware.com/cmake/cmake/-/issues/23716) and [manylinux issue](pypa/manylinux#1347), when building a python module, it should find the `Development.Module` module, not `Development`, which includes `Development.Module` and `Development.Embed`, and will expect the shared python library only. After this PR and before pytorch#124613, pytorch could be built with a static libpython (e.g. in manylinux). Pull Request resolved: pytorch#129669 Approved by: https://github.com/malfet
Based on the cmake issue and manylinux issue, when building a python module, it should find the
Development.Module
module, notDevelopment
, which includesDevelopment.Module
andDevelopment.Embed
, and will expect the shared python library only. After this PR and before #124613, pytorch could be built with a static libpython (e.g. in manylinux).