8000 Cython wrapper for all release modes by varunagrawal · Pull Request #63 · borglab/gtsam · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Cython wrapper for all release modes #63

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

Merged
merged 6 commits into from
Jun 18, 2019

Conversation

varunagrawal
Copy link
Contributor
@varunagrawal varunagrawal commented Jun 12, 2019

This PR upates the CMake files so that the generated cython wrapper only appends the build type postfix to the top-level cython directory in the install path, rather than appending it to the sub-directories or .so files since that would cause import issues when using the cython wrapper in any mode other than Release.

This was a doozy, but it works and should be a huge step forward with respect to improvements in the python wrapper.


This change is Reviewable

@varunagrawal varunagrawal added the enhancement Improvement to GTSAM label Jun 12, 2019
@varunagrawal varunagrawal self-assigned this Jun 12, 2019
@dellaert
Copy link
Member

Took off Mandy and Jose as reviewers, suggest you add Duy and Matthew

@dellaert dellaert requested a review from jlblancoc June 12, 2019 22:17
@dellaert
Copy link
Member

Adding @jlblancoc again because maybe you should be merging this into his PR, not straight into develop? Lots of cmake changes there... I'll let him comment: if the two PR's are not conflicting, you can just target develop as is.

@varunagrawal
Copy link
Contributor Author

I can rebase off the branch once it is approved/merged and make the needed changes, if that works?

@varunagrawal varunagrawal force-pushed the feature/cython-wrapper-release-mode branch from d3abb3e to 9d92108 Compare June 13, 2019 02:59
@dellaert
Copy link
Member

Resolve conflicts so we can merge?

- Added top-level cmake build type upper case variable.
- Added new GTSAM_BUILD_TAG variable for use in wrapping gtsam_eigency.
- Removed FATAL message regarding GTSAM_BUILD_TYPE_POSTFIXES.
- Update install directory so that the release tag is appended to the cython directory only rather than the specific subdirectories.
- Update the target properties so that the .so files don't have the build type appended as a postfix.
@varunagrawal varunagrawal force-pushed the feature/cython-wrapper-release-mode branch from 9d92108 to 37aa167 Compare June 17, 2019 20:37
@varunagrawal
Copy link
Contributor Author

Rebase done. It was pretty quick. 😄

@varunagrawal varunagrawal requested a review from thduynguyen June 17, 2019 20:38
@dellaert
Copy link
Member

Ok let’s wait for travis

@dellaert dellaert merged commit 266dff0 into develop Jun 18, 2019
@dellaert dellaert deleted the feature/cython-wrapper-release-mode branch June 21, 2019 19:48
varunagrawal added a commit that referenced this pull request Mar 26, 2021
96ccdfd0b Merge pull request #65 from borglab/fix/special-cases
04c06b7e6 Merge pull request #63 from borglab/fix/cmake
bf2c91bd2 fix issue in template instantiation generator
152dbcb12 test for special cases
d03004b24 fixed the cmake to discover the correct python version and set all corresponding variables
4cf66e0da Merge pull request #61 from borglab/fix/python-variables
80558e35b added more status messages and set the PYBIND11_PYTHON_VERSION each time
73afd1b0a set both sets of Python variables and find python version when including PybindWrap
REVERT: 9a467794e Merge pull request #61 from borglab/fix/python-variables
REVERT: 6bae7af99 added more status messages and set the PYBIND11_PYTHON_VERSION each time
REVERT: 5129cf3b9 set both sets of Python variables and find python version when including PybindWrap

git-subtree-dir: wrap
git-subtree-split: 96ccdfd0b84a4dbf1b3e9ed31b95ebc2758be9cc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Improvement to GTSAM
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0