-
Notifications
You must be signed in to change notification settings - Fork 579
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
ENH: Simplify reuse of vtkAddon integrating it as a Slicer remote project #4765
Conversation
Let's also note that the new repository https://github.com/Slicer/vtkAddon is not a fork of https://github.com/lorensen/vtkAddon. Instead I was thinking to add an History section to the README of @lassoan @pieper Does that sound reasonable ? Finally, note that the work done by @lorensen is not lost. Indeed, in few days I will update Edited: This was done in Slicer/vtkAddon#4 |
Updated: This was fixed by ensuring variables |
…ject This commit partially reverts 67456af (ENH: Add option to build Slicer using system vtkAddon) and includes vtkAddon as a Slicer remote. The call to Slicer_Remote_Add defines Slicer_BUILD_vtkAddon and vtkAddon_SOURCE_DIR CMake variables. The source of vtkAddon have been extracted and published in a standalone repository that can be built independently. See https://github.com/Slicer/vtkAddon For future reference, source have been extracted using the following commands: # Clone git clone git://github.com/Slicer/Slicer /tmp/Slicer-for-vtkAddon cd /tmp/Slicer-for-vtkAddon # Extract history specific to vtkAddon git-rocket-filter --branch vtkAddon \ --keep Libs/vtkAddon/ \ --detach # Remove empty directories find . -depth -empty -not -path '*/\.*' -delete # Publish repo git remote add vtkAddon [email protected]:Slicer/vtkAddon # Clone git clone [email protected]:Slicer/vtkAddon /tmp/vtkAddon cd /tmp/vtkAddon # Move files from 'Libs/vtkAddon' directory to the root git filter-branch --force --tree-filter \ 'mv Libs/vtkAddon/* ./ > /dev/null 2>&1 || true' \ --tag-name-filter cat -- --all # Re-publish git push origin master --force
44686bc
to
d9e129d
Compare
Local linux build completed 👍 |
@jcfr This will be very useful. Thanks for doing it! |
Could you approve so that I can merge ? |
Thanks for working on this! Now that we have a process to do this, can we repeat it for vtkSegmentationCore? It is actually used by other projects (MITK, OHIF), but it is so far in the Slicer source tree just like vtkAddon. I created a separate repo for it mainly for publication purposes (https://github.com/PerkLab/PolySeg) but the latest fixes are not integrated in it, so it would be nice if Slicer used vtkSegmentationCore as remote just like what happened now with vtkAddon. Thanks! |
Thanks for the feedback
Yes. I will extract the history and create the repo. The advantage of adding the project as a "remote" is that associate test are still executed as part of the Slicer tests. |
This is an interesting path. We could also consider factoring out other parts of slicer and making them available for use in C++ or python. |
That makes sense, as we move forward with the transition to use the latest VTK, the will probably move into this direction. |
MRML would be another great candidate. This would all very impactful if the libraries were made available on PyPI. |
This commit partially reverts 67456af (ENH: Add option to build Slicer
using system vtkAddon) and includes
vtkAddon
as a Slicer remote.The call to
Slicer_Remote_Add
definesSlicer_BUILD_vtkAddon
andvtkAddon_SOURCE_DIR
CMake variables.The source of vtkAddon have been extracted and published in a standalone
repository that can be built independently.
See https://github.com/Slicer/vtkAddon
For future reference, source have been extracted using the following
commands: