- Patch to fix Wrapping/Python/setup_install_paths.py of vtk.
- Now using --single-version-externally-managed instead of
manually moving around the Python egg.
- Simplified and reordered the Python-related args because
Apple and Homebrew both only build frameworked Pythons.
FixesHomebrew/homebrew#16254.
ClosesHomebrew/homebrew#16397.
Signed-off-by: Adam Vandenberg <flangy@gmail.com>
Upgrade vtk to version 5.10.
Add deps on `sip` and `pyqt` if the user options `--pyqt`
Add cmake args to enable SIP/PyQt if `--pyqt`
Add cmake args for `-DSIP_PYQT_DIR` as `HOMEBREW_PREFIX/share/sip`.
Add `skip_clean :all` to help vtkpython find the symbol `_environ`
Change the location of the python `.so` modules so they and the Egg
get installed into `lib/which_python/'site-packages'`.
Add code so `site-packages` is created and prepended to the
PYTHONPATH to stop build errors.
Add `-DPYTHON_INCLUDE_DIR` so the right headers are located.
Remove the workaround code that was previously added to support
Python getting RPATHs, as RPATHS are fixed in Homebrew Core.
Add code that removes three duplicate files in `site-packages`
that cause the linking step to fail, files that already
exist in HB `site-packages` when using brewed Python.
Add code to `mv` the python module directory `vtk` out of the
`VTK-5.10-py2.7.egg` and into `site-packages`. Without that,
you can't import vtk into Python.
Add code to install the `Examples`
Tested on Lion using clang and llvm from XCode-4.3.3 with the CLT
and without the CLT against system Python, HB framework Python,
HB non-framework Python, Qt-4.8.2, sip, pyqt, pyside and shiboken.
ClosesHomebrew/homebrew#12807.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
When interpolating in strings passed to Formula#system, it should be
done in such a way that if any interpolated variables contain spaces,
they are either (a) passed as part of a list or (b) protected by quotes
if they are part of a long string (which is subject to shell expansion).
Otherwise, they will be split on the space when expanded by the shell
and passed as multiple arguments to whatever process is being executed.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
- Work-a-round: Add a temp symlink from Cellar/vtk to the cwd such that
building the wrappers can find the libs. Then remove the symlink and
let `make install` move everything into place.
ClosesHomebrew/homebrew#9796.
Signed-off-by: Charlie Sharpsteen <source@sharpsteen.net>