Skip to content

Commit 3960782

Browse files
committed
fixing extras
1 parent 2c3b7b0 commit 3960782

File tree

3 files changed

+15
-17
lines changed

3 files changed

+15
-17
lines changed

.travis.yml

Lines changed: 7 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ python:
66
- 3.4
77
- 3.5
88
env:
9-
- INSTALL_DEB_DEPENDECIES=true
10-
- INSTALL_DEB_DEPENDECIES=false
11-
- INSTALL_DEB_DEPENDECIES=true DUECREDIT_ENABLE=yes
9+
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler"
10+
- INSTALL_DEB_DEPENDECIES=false NIPYPE_EXTRAS="doc,tests,fmri,profiler"
11+
- INSTALL_DEB_DEPENDECIES=true NIPYPE_EXTRAS="doc,tests,fmri,profiler,duecredit"
1212
before_install:
1313
- wget http://repo.continuum.io/miniconda/Miniconda${TRAVIS_PYTHON_VERSION:0:1}-latest-Linux-x86_64.sh
1414
-O /home/travis/.cache/miniconda.sh
@@ -29,16 +29,13 @@ install:
2929
- conda config --add channels conda-forge
3030
- conda update --yes conda
3131
- conda update --all -y python=$TRAVIS_PYTHON_VERSION
32-
# - if [[ "${INSTALL_DEB_DEPENDECIES}" == "true" && ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then
33-
# conda install -y vtk mayavi; fi
3432
- conda install -y nipype
35-
- pip install python-coveralls coverage doctest-ignore-unicode
36-
- if [ ! -z "$DUECREDIT_ENABLE"]; then pip install duecredit; fi
3733
- rm -r /home/travis/miniconda/lib/python${TRAVIS_PYTHON_VERSION}/site-packages/nipype*
34+
# - if [[ "${INSTALL_DEB_DEPENDECIES}" == "true" && ${TRAVIS_PYTHON_VERSION:0:1} == "2" ]]; then
35+
# conda install -y vtk mayavi; fi
3836
- pip install -r requirements.txt
39-
- pip install -e .
40-
- export COVERAGE_PROCESS_START=$(pwd)/.coveragerc
41-
- export COVERAGE_DATA_FILE=$(pwd)/.coverage
37+
- pip install -e .[$NIPYPE_EXTRAS]
38+
- export COVERAGE_PROCESS_START=$(pwd)/.coveragerc && export COVERAGE_DATA_FILE=$(pwd)/.coverage
4239
- echo "data_file = ${COVERAGE_DATA_FILE}" >> ${COVERAGE_PROCESS_START}
4340
script:
4441
- python -W once:FSL:UserWarning:nipype `which nosetests` --with-doctest --with-doctest-ignore-unicode --with-cov --cover-package nipype --logging-level=DEBUG --verbosity=3

nipype/info.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,9 @@ def get_nipype_gitversion():
158158
'doc': ['Sphinx>=0.3'],
159159
'tests': TESTS_REQUIRES,
160160
'fmri': ['nitime'],
161-
'profiler': ['psutil']
161+
'profiler': ['psutil'],
162+
'duecredit': ['duecredit'],
163+
# 'mesh': ['mayavi'] # Enable when it works
162164
}
163165

164166
# Enable a handle to install all extra dependencies at once

setup.py

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
from glob import glob
1818
import os
1919
from os.path import join as pjoin
20-
21-
from builtins import str, bytes, open
20+
from io import open
2221

2322
# Commit hash writing, and dependency checking
2423
from setuptools.command.build_py import build_py
@@ -72,7 +71,7 @@ def run(self):
7271
shell=True)
7372
repo_commit, _ = proc.communicate()
7473
# Fix for python 3
75-
repo_commit = str(repo_commit)
74+
repo_commit = '{}'.format(repo_commit)
7675
# We write the installation commit even if it's empty
7776
cfg_parser = ConfigParser()
7877
cfg_parser.read(pjoin('nipype', 'COMMIT_INFO.txt'))
@@ -93,7 +92,7 @@ def main():
9392
for val in os.listdir(pjoin(thispath, 'nipype', 'testing', 'data'))
9493
if not os.path.isdir(pjoin(thispath, 'nipype', 'testing', 'data', val))]
9594

96-
testdatafiles+=[
95+
testdatafiles += [
9796
pjoin('testing', 'data', 'dicomdir', '*'),
9897
pjoin('testing', 'data', 'bedpostxout', '*'),
9998
pjoin('testing', 'data', 'tbss_dir', '*'),
@@ -128,7 +127,7 @@ def main():
128127
platforms=ldict['PLATFORMS'],
129128
version=ldict['VERSION'],
130129
install_requires=ldict['REQUIRES'],
131-
setup_requires=['configparser'],
130+
setup_requires=['future', 'configparser'],
132131
provides=ldict['PROVIDES'],
133132
packages=[
134133
'nipype',
@@ -253,7 +252,7 @@ def main():
253252

254253
package_data={'nipype': testdatafiles},
255254
scripts=glob('bin/*'),
256-
cmdclass={ 'build_py': BuildWithCommitInfoCommand },
255+
cmdclass={'build_py': BuildWithCommitInfoCommand},
257256
tests_require=ldict['TESTS_REQUIRES'],
258257
test_suite='nose.collector',
259258
zip_safe=False,

0 commit comments

Comments
 (0)