<div dir="ltr">nice!<div><br></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature">David E DeMarle<br>Kitware, Inc.<br>R&D Engineer<br>21 Corporate Drive<br>Clifton Park, NY 12065-8662<br>Phone: 518-881-4909</div></div>
<br><div class="gmail_quote">On Sat, Jul 2, 2016 at 4:39 AM, Matthew Brett <span dir="ltr"><<a href="mailto:matthew.brett@gmail.com" target="_blank">matthew.brett@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
Just to say, I did a few hours of hacking and investigation, which got<br>
me reasonably close to a copy of VTK that could be used for a very<br>
useful OSX binary installer - full description at:<br>
<br>
<a href="https://mail.python.org/pipermail/pythonmac-sig/2016-July/024137.html" rel="noreferrer" target="_blank">https://mail.python.org/pipermail/pythonmac-sig/2016-July/024137.html</a><br>
<br>
As y'all know, the current OSX installer isn't much use for doing real<br>
work, because it ships its own copy of Python, making it difficult to<br>
install other Python packages for doing standard things like array<br>
manipulation, statistics and so on.<br>
<br>
The ideal would be to be able to build a binary wheel [1] for OSX, so<br>
the user could do:<br>
<br>
    pip install vtk<br>
<br>
to install a copy of vtk into the Python environment they are using -<br>
such as Python.org Python, homebrew, etc.  This has already been done<br>
for nearly all the main scientific Python projects such as numpy,<br>
scipy, matplotlib etc.<br>
<br>
The big hold-up for VTK, is the current behavior of VTK / cmake, to<br>
link the Python library by absolute path directly into the VTK libs,<br>
so the build is tied to the path of the Python binary [2, 3].<br>
<br>
I see there's a pull request already in from the homebrew folks to try<br>
and fix that [4] - which is excellent news.   I believe that, once<br>
this is merged and released, it should be fairly easy to build an OSX<br>
wheel that would work in any standard OSX Python environment, which<br>
would be a huge step forward in terms of ease of the install process.<br>
<br>
Cheers,<br>
<br>
Matthew<br>
<br>
[1] <a href="https://www.python.org/dev/peps/pep-0427/" rel="noreferrer" target="_blank">https://www.python.org/dev/peps/pep-0427/</a><br>
[2] <a href="http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/" rel="noreferrer" target="_blank">http://blog.tim-smith.us/2015/09/python-extension-modules-os-x/</a><br>
[3] <a href="https://github.com/Homebrew/homebrew-science/issues/3401" rel="noreferrer" target="_blank">https://github.com/Homebrew/homebrew-science/issues/3401</a><br>
[4] <a href="https://gitlab.kitware.com/vtk/vtk/merge_requests/1511" rel="noreferrer" target="_blank">https://gitlab.kitware.com/vtk/vtk/merge_requests/1511</a><br>
_______________________________________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/opensource/opensource.html</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=vtk-developers" rel="noreferrer" target="_blank">http://markmail.org/search/?q=vtk-developers</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="http://public.kitware.com/mailman/listinfo/vtk-developers" rel="noreferrer" target="_blank">http://public.kitware.com/mailman/listinfo/vtk-developers</a><br>
<br>
</blockquote></div><br></div>