Skip to content

Commit 3eeb056

Browse files
committed
fix: first pass at transition to vtk 8.x
1 parent aab815d commit 3eeb056

File tree

6 files changed

+12
-35
lines changed

6 files changed

+12
-35
lines changed

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,3 +44,5 @@ _$*
4444
*.tar.gz
4545
*.Z
4646
*.zip
47+
48+
MANIFEST

circle.yml

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,14 @@ machine:
2020
python: ${ENV_PREFIX}/bin/python
2121
vtk_cpp_tools: ${HOME}/mindboggle/vtk_cpp_tools/bin
2222
PATH: ${ENV_PREFIX}/bin:${CONDA_ROOT}/bin:${vtk_cpp_tools}:${PATH}
23-
SITEPKGS: ${ENV_PREFIX}/lib/python3.5/site-packages
23+
SITEPKGS: ${ENV_PREFIX}/lib/python3.6/site-packages
2424
PYTHONPATH: ${SITEPKGS}/vtk:${PYTHONPATH}
2525
MB: ${SITEPKGS}/mindboggle
2626

2727
#-----------------------------------------------------------------------------
2828
# Customize dependencies:
2929
#-----------------------------------------------------------------------------
3030
dependencies:
31-
#cache_directories:
32-
# - $CONDA_ROOT
33-
34-
pre:
35-
- sudo apt-get update; sudo apt-get install libllvm-3.3
36-
3731
override:
3832

3933
#-------------------------------------------------------------------------
@@ -59,6 +53,7 @@ dependencies:
5953
# Install Mindboggle and its C++ code:
6054
#-------------------------------------------------------------------------
6155
- $python setup.py install
56+
- ln /
6257
- mkdir $vtk_cpp_tools && cd $vtk_cpp_tools && cmake ../ && make
6358

6459
#-----------------------------------------------------------------------------

environment.yml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,12 @@
1313
#-----------------------------------------------------------------------------
1414
name: mindboggle-env
1515
#-----------------------------------------------------------------------------
16-
# anaconda cloud channel for installing VTK 7.0.0:
17-
#-----------------------------------------------------------------------------
18-
channels:
19-
- clinicalgraphics
20-
#-----------------------------------------------------------------------------
2116
# mindboggle dependencies:
2217
#-----------------------------------------------------------------------------
2318
dependencies:
24-
- python=3.5.1
25-
- vtk=7.0.0
19+
- python>=3.5.1
20+
- vtk>=7.0
21+
- mesalib
2622
- matplotlib
2723
- numpy
2824
- scipy

info.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@
1616
"Programming Language :: Python 3",
1717
"Topic :: Scientific/Engineering"]
1818

19-
description = "Automated human brain image feature extraction, labeling, and shape analysis"
19+
description = ("Automated human brain image feature extraction, labeling, "
20+
"and shape analysis")
2021

2122
# Note: this long_description is actually a copy/paste from the top-level
2223
# README.rst, so that it shows up nicely on PyPI. So please remember to edit
@@ -50,5 +51,5 @@
5051
PLATFORMS = "Linux"
5152
VERSION = __version__
5253
PROVIDES = ["mindboggle"]
53-
#REQUIRES = ["numpy (>={0})".format(NUMPY_MIN_VERSION)]
54+
REQUIRES = ["nipype", "matplotlib", "colormath", "pandas"]
5455

setup.py

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -18,29 +18,13 @@
1818
if len(set(('develop', 'bdist_egg', 'bdist_rpm', 'bdist', 'bdist_dumb',
1919
'bdist_wininst', 'install_egg_info', 'egg_info', 'easy_install',
2020
)).intersection(sys.argv)) > 0:
21-
# setup_egg imports setuptools setup, thus monkeypatching distguts.
22-
# import setup_egg
2321
pass
2422
from distutils.core import setup
2523

2624
# Get version and release info, which is all stored in info.py
2725
ver_file = pjoin(os.getcwd(), 'info.py')
2826
exec(open(ver_file).read())
2927

30-
# Do dependency checking
31-
#package_check('numpy', NUMPY_MIN_VERSION)
32-
33-
# extra_setuptools_args = {}
34-
# if 'setuptools' in sys.modules:
35-
# extra_setuptools_args = dict(
36-
# tests_require=['nose'],
37-
# test_suite='nose.collector',
38-
# zip_safe=False,
39-
# extras_require = dict(
40-
# doc='Sphinx>=0.3',
41-
# test='nose>=0.10.1')
42-
# )
43-
4428
def main(**extra_args):
4529
setup(name=NAME,
4630
maintainer=MAINTAINER,
@@ -55,7 +39,7 @@ def main(**extra_args):
5539
author_email=AUTHOR_EMAIL,
5640
platforms=PLATFORMS,
5741
version=VERSION,
58-
#requires=REQUIRES,
42+
requires=REQUIRES,
5943
provides=PROVIDES,
6044
packages=['mindboggle',
6145
'mindboggle.data',
@@ -77,4 +61,3 @@ def main(**extra_args):
7761

7862
if __name__ == "__main__":
7963
main()
80-
#main(**extra_setuptools_args)

vtk_cpp_tools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ project(mindboggle_surfaces)
55
## "cmake .. -DVTK_DIR:STRING=/Users/arno/anaconda/lib/cmake/vtk-7.0"
66
#set(VTK_DIR "/Users/arno/anaconda/lib/cmake/vtk-7.0")
77
#find_package(VTK REQUIRED NO_MODULE)
8-
find_package(VTK 7.0 COMPONENTS vtkInteractionStyle vtkRenderingFreeType vtkRenderingOpenGL2 vtkRenderingVolumeOpenGL2 vtkIOLegacy vtkIOMINC vtkIOGeometry vtkImagingStencil vtkImagingMorphological vtkFiltersModeling NO_MODULE)
8+
find_package(VTK 8.0 COMPONENTS vtkInteractionStyle vtkRenderingFreeType vtkRenderingOpenGL2 vtkRenderingVolumeOpenGL2 vtkIOLegacy vtkIOMINC vtkIOGeometry vtkImagingStencil vtkImagingMorphological vtkFiltersModeling NO_MODULE)
99
include(${VTK_USE_FILE})
1010

1111
#if(COMMAND CMAKE_POLICY)

0 commit comments

Comments
 (0)