SimpleITK / SimpleITKPythonPackage

A setup script to generate a Python Wheels
17 stars 11 forks source link

help building against a pre-existing SimpleITK #48

Open cfhammill opened 2 years ago

cfhammill commented 2 years ago

Hi SimpleITK devs, I'm trying to get the SimpleITK python bindings packaged for the nix package manager so I can use them for work. SimpleITK itself has been packaged https://github.com/NixOS/nixpkgs/blob/master/pkgs/development/libraries/simpleitk/default.nix

The packaged version of SimpleITK is compiled with shared objects, and includes the development headers. It also has the following cmake files squirreled away SimpleITKConfig.cmake SimpleITKConfigVersion.cmake SimpleITKTargets.cmake SimpleITKTargets-release.cmake UseSimpleITK.cmake

I think this should be enough to build the python bindings against without recompiling SimpleITK but I've been unable to figure out how to coax the build system to use the pre-existing version. Disabling the superbuild was no help because it expects cmake_install files to exist which do not.

Any suggestions for how I could proceed?