-
Notifications
You must be signed in to change notification settings - Fork 20
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify build by creating a fake extension (#34)
Summary: This PR simplifies our build setup from `setup.py`'s side: instead of creating one `Extension` object per `.so` file that we build, we declare only *one* fake Extension object and let CMake do all the work. This PR addresses https://www.internalfb.com/diff/D58585136?dst_version_fbid=386542291075917&transaction_fbid=3369755276656440. Pros: - We don't have to keep the .so files name in sync between CMake and setup.py. In D58585136 that proved to be challenging and brittle. - The CMake buid is called only once. This is simpler to debug, less surprising, and slightly faster - We can unblock D58585136 Cons: - We have to handle the "move extensions from their temp build dir back into where they're expected" logic ourselves - see comments for clarifications. We had a non-standard setup before, now we have another non-standard setup. Overall, I think we gained a little bit of simplicity with that setup, even though that made me write a lot of comments. And that will help us unblock D58585136. Pull Request resolved: #34 Reviewed By: ahmadsharif1 Differential Revision: D58646830 Pulled By: NicolasHug fbshipit-source-id: fac238ad78931ee923ba3af7d5f6be1d1930bd36
- Loading branch information
1 parent
58350e1
commit 3816bc1
Showing
3 changed files
with
61 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters