Skip to content

Mayavi #2215

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

Merged
merged 13 commits into from
Jan 16, 2017
Merged

Mayavi #2215

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
2 changes: 2 additions & 0 deletions recipes/mayavi/bld.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
%PYTHON% setup.py install --single-version-externally-managed --record record.txt
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

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

DISPLAY=localhost:1.0 xvfb-run -a bash -c $CMD
60 changes: 60 additions & 0 deletions recipes/mayavi/meta.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{% 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
skip: True # [osx or win]
number: 0

requirements:
build:
- toolchain
- python
- numpy x.x
- setuptools
- vtk
Copy link
Member

Choose a reason for hiding this comment

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

Should this have been pinned too?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

  • python : 2.7 and 3.5 are supported
  • vtk: I think yes, we shoud pin it to >= 7.1

- traitsui
- apptools
run:
- python
- numpy x.x
- vtk ==7.1.0
Copy link
Member

Choose a reason for hiding this comment

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

Does it need to be pinned exactly?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I think >= 7.1 is enough. I'll propose the change

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Created conda-forge/mayavi-feedstock#1 to not forget

- traitsui
- apptools
- envisage
- pyqt
- setuptools
Copy link
Member

Choose a reason for hiding this comment

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

Does mayavi needs pkg_resources? If not we can remove setuptools from the run dependencies.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

seems that yes, pkg_resources is needed


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

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

extra:
recipe-maintainers:
- msarahan
- grlee77
- hadim
- dfroger
3 changes: 3 additions & 0 deletions recipes/mayavi/yum_requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
libXt-devel
mesa-libGLU-devel
xorg-x11-server-Xvfb