-
Notifications
You must be signed in to change notification settings - Fork 374
[WIP] VTK 7 recipe supporting both Python 2 & 3 #581
base: main
Are you sure you want to change the base?
Conversation
PY_LIB="libpython${PY_VER}.so" | ||
# Note: VTK 7 requires gcc >= 4.2 | ||
CC=gcc | ||
CXX=g++ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Please leave here gcc44 and g++44. Those are the versions we're using right now in centos5.
Thanks a lot for working on this. Other than my minor comments, this seems good to go :-) |
+1 for merge works beautifully on os x. |
Will do :-) |
@ccordoba12 - hold that thought. getting some rpath errors on pushing this to anaconda.org and installing with conda. looking into it. |
this is the error that's happening: nipy/mindboggle#69 |
Hi Satra, Are you sure the VTK_DIR is getting set to this location during your os x build? I am now trying this on a laptop with OS X at the moment, but the build is taking a while. For some reason, on my laptop, I have to comment out the
I have cmake v3.4.3 already on my system, so removing the |
@binarybottle - can you answer @grlee77 question? |
@grlee77 - did you try installing vtk7 from my conda repo, instead of building vtk locally with conda? https://anaconda.org/satra/vtk so the recipe builds fine on my local machine, but when i push to anaconda.org and someone downloads it they get the rpath error. |
@satra, @binarybottle I uploaded a Python 3.4 build of VTK 7 for OS X here: Let's continue any further discussion of this back at nipy/mindboggle#69 as it seems the recipe itself is likely not the cause of the problem. |
@ccordoba12 - could someone from the continuum team help with this. i believe this is specific to conda-build and OSX. |
@satra, I'm in charge of compiling VTK in all platforms, so I'm your guy :-) Problem is I'm terribly busy until April 8th. By reading the mindboggle issue very quickly, I think your problem is that CMake doesn't find the 10.6 SDK, which is necessary because conda-build sets If you're using command line tools, that SDK has to be placed in a particular location (I don't exactly remember which one right now), and if you're using XCode, it needs to be placed on another. I hope this helps you to better understand your problem until I have some free time :-) |
@ccordoba12 I am trying to build SimpleITK and VTK against anaconda, with similar issues with 10.6 SDK not being available. I am running OS X 10.10.5, and Xcode 7.2.1. CMake Warning at /scratch/johnsonhj/anaconda2/envs/_build/share/cmake-3.3/Modules/Platform/Darwin-Initialize.cmake:97 (message): "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.6.sdk" Instead using SDK: "/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.11.sdk". Are there instructions for setting up a compilation environment that is appropriate for the anaconda package building? Thanks, |
Just for reference, after following the thread of PRs, the current easiest installation seems to be with
|
@ccordoba12 - I know that VTK 7.0 on all platforms is currently not possible in conda-forge due to build time limitations on the CI services, but is there any chance that you could build and put VTK 7.0 in the defaults channel? :) |
Hi,
I spent some time the other day getting VTK 7 to build with Python 3 wrappers and wanted to share my efforts. I have marked this as work-in-progress because I am only sure that this recipe succeeds on 64-bit linux.
On OSX Yosemite, the build completed successfully (at least once I installed XCode), but for some reason the import failed during running the tests and the package was not installed. However, if I manually copy the VTK folder from the _build environment's site-packages folder into my primary environment's site-packages folder, it does seem to work properly.
The windows case has not been tested at all, but I attempted to add the appropriate flag for Python 2 vs. 3