Package executables with extension

Hello,

I am building an extension and I need to package with it a couple of executables which I want to call as subprocesses from a scripted python module.

This seems the quickest solution for me, avoiding complex building issues.

I have been researching for the last weeks on how to do this but I haven’t found a solution yet.

I already have a slicer superbuild to build the extension.

Any help would be super appreciated, thanks.

If you are building these executables from source then it’s good to build them as part of the extension build. If they are just binaries you got from somewhere you can put them in the Resources folder and install them like you would jpg or something. Be sure to check the platform and warn the user if you don’t have binaries for their machine.

1 Like

Works, thank you very much!
A little bit trickier to copy directories though, but feasible