Skip to content

Commit 4918734

Browse files
authored
Merge pull request #154 from satra/enh/vtk8
[WIP] fix: first pass at transition to vtk 8.x
2 parents edf95a3 + 9934d02 commit 4918734

File tree

7 files changed

+53
-103
lines changed

7 files changed

+53
-103
lines changed

.circleci/config.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
version: 2
2+
jobs:
3+
build:
4+
docker:
5+
- image: continuumio/miniconda3:4.5.4
6+
environment:
7+
ENV_NAME: mindboggle-env
8+
vtk_cpp_tools: /src/mindboggle/vtk_cpp_tools/bin
9+
working_directory: /src/mindboggle
10+
steps:
11+
- checkout
12+
- run:
13+
name: Install mindboggle
14+
command: |
15+
set -eu
16+
apt-get update -qq && apt-get install -yq \
17+
build-essential \
18+
libgl1-mesa-dev \
19+
libglu1-mesa-dev \
20+
libsm-dev \
21+
libx11-dev \
22+
libxt-dev \
23+
libxext-dev
24+
ln -sv /usr/lib/x86_64-linux-gnu /usr/lib64
25+
conda config --set show_channel_urls yes --set always_yes yes
26+
conda config --add channels conda-forge
27+
conda update conda conda-env
28+
conda env create --quiet
29+
source activate $ENV_NAME
30+
conda info --envs
31+
python setup.py install
32+
mkdir $vtk_cpp_tools && cd $vtk_cpp_tools && cmake ../ && make
33+
- run:
34+
name: Test mindboggle
35+
command: |
36+
source activate $ENV_NAME
37+
export MB=/opt/conda/envs/${ENV_NAME}/lib/python3.6/site-packages/mindboggle
38+
export PATH=$PATH:$vtk_cpp_tools
39+
python -m "nose" --with-doctest ${MB}/thirdparty/
40+
python -m "nose" --with-doctest ${MB}/mio/
41+
python -m "nose" --with-doctest ${MB}/guts/
42+
python -m "nose" --with-doctest ${MB}/shapes/
43+
python -m "nose" --with-doctest ${MB}/features/

.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: 0 additions & 75 deletions
This file was deleted.

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.1 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)