Skip to content

add mayavi #1581

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions recipes/mayavi/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
%PYTHON% setup.py install --single-version-externally-managed --record record.txt
if errorlevel 1 exit 1

:: move examples %EXAMPLES%
:: if errorlevel 1 exit 1
5 changes: 5 additions & 0 deletions recipes/mayavi/build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
#!/bin/bash

$PYTHON setup.py install --single-version-externally-managed --record record.txt

# mv examples $EXAMPLES
54 changes: 54 additions & 0 deletions recipes/mayavi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
{% set version = "4.5.0" %}

package:
name: mayavi
version: {{ version }}

source:
fn: mayavi-{{ version }}.tar.gz
url: https://github.com/enthought/mayavi/archive/{{ version }}.tar.gz
sha256: 36f688b3ea542e9f8cc0d7faa25e1425723cd00acc8aa640169029f33679ab85

build:
entry_points:
- mayavi2 = mayavi.scripts.mayavi2:main
- tvtk_doc = tvtk.tools.tvtk_doc:main
osx_is_app: True

requirements:
build:
- python
- numpy
- setuptools
- vtk
- traitsui
- apptools
run:
- python
- python.app # [osx]
- numpy
- vtk
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this version of Mayavi requires VTK > 6, just as a note.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

http://docs.enthought.com/mayavi/mayavi/installation.html has a note:

As new versions of VTK become available, Mayavi is continuously updated to support 
the latest releases. If your VTK version is newer than 6.2.0, please check the Changelog
for the current status of Mayavi. 

Changelog does not mention that Mayavi supports VTK versions > 6.2.0.

I propose to have conda packages for VTK 6.2.0, for Python 2.7 and 3.5, and use it for Mayavi 4.5.0

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah, I didn't kwon that....

http://www.vtk.org/Wiki/VTK/Python_Wrapping_FAQ#Python_Versions:

Versions of VTK prior to 7.0 will only work with Python 2.

- traitsui
- apptools
- envisage
- pyqt
- setuptools

test:
commands:
- mayavi2 --help
imports:
- tvtk
- tvtk.array_ext
- mayavi

about:
home: https://github.com/enthought/mayavi
license: BSD
license_file: LICENSE.txt
summary: The Mayavi scientific data 3-dimensional visualizers

extra:
recipe-maintainers:
- msarahan
- grlee77