Skip to content

Commit b323622

Browse files
committed
Merge pull request #1478 from shoshber/installation
DOC:add instructions to install; fix doc build for python 3
2 parents f4f6cc0 + 542f681 commit b323622

File tree

3 files changed

+24
-15
lines changed

3 files changed

+24
-15
lines changed

doc/links_names.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
.. _doctest-mode: http://www.cis.upenn.edu/~edloper/projects/doctestmode/
5757
.. _bazaar: http://bazaar-vcs.org/
5858
.. _subversion: http://subversion.tigris.org/
59-
.. _nose: http://somethingaboutorange.com/mrl/projects/nose
59+
.. _nose: http://nose.readthedocs.io/en/latest/
6060
.. _`python coverage tester`: http://nedbatchelder.com/code/modules/coverage.html
6161

6262
.. Other python projects

doc/sphinxext/numpy_ext/numpydoc.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def mangle_docstrings(app, what, name, obj, options, lines,
4040

4141
if what == 'module':
4242
# Strip top title
43-
title_re = re.compile(ur'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[#*=]{4,}\s*',
43+
title_re = re.compile(r'^\s*[#*=]{4,}\n[a-z0-9 -]+\n[#*=]{4,}\s*',
4444
re.I | re.S)
4545
lines[:] = title_re.sub(u'', u"\n".join(lines)).split(u"\n")
4646
else:
@@ -61,7 +61,7 @@ def mangle_docstrings(app, what, name, obj, options, lines,
6161
references = []
6262
for line in lines:
6363
line = line.strip()
64-
m = re.match(ur'^.. \[([a-z0-9_.-])\]', line, re.I)
64+
m = re.match(r'^.. \[([a-z0-9_.-])\]', line, re.I)
6565
if m:
6666
references.append(m.group(1))
6767

@@ -70,7 +70,7 @@ def mangle_docstrings(app, what, name, obj, options, lines,
7070
if references:
7171
for i, line in enumerate(lines):
7272
for r in references:
73-
if re.match(ur'^\d+$', r):
73+
if re.match(r'^\d+$', r):
7474
new_r = u"R%d" % (reference_offset[0] + int(r))
7575
else:
7676
new_r = u"%s%d" % (r, reference_offset[0])

doc/users/install.rst

Lines changed: 20 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ To check out the latest development version::
2121

2222
git clone git://github.com/nipy/nipype.git
2323

24+
or::
25+
26+
git clone https://github.com/nipy/nipype.git
27+
2428
Install
2529
-------
2630

@@ -46,9 +50,8 @@ Mac OS X
4650
~~~~~~~~
4751

4852
The easiest way to get nipype running on Mac OS X is to install Anaconda_ or
49-
Canopy_ and then add nibabel and nipype by executing::
53+
Canopy_ and then add nipype by executing::
5054

51-
easy_install nibabel
5255
easy_install nipype
5356

5457
From source
@@ -58,6 +61,7 @@ If you downloaded the source distribution named something
5861
like ``nipype-x.y.tar.gz``, then unpack the tarball, change into the
5962
``nipype-x.y`` directory and install nipype using::
6063

64+
pip install -r requirements.txt
6165
python setup.py install
6266

6367
**Note:** Depending on permissions you may need to use ``sudo``.
@@ -107,10 +111,15 @@ recommendations.
107111
Must Have
108112
~~~~~~~~~
109113

110-
Python_ 2.7
114+
.. note::
115+
116+
Full distributions of Nipype, such as the ones in Anaconda_ or Canopy_, provide
117+
the following packages automatically.
111118

112119
Nibabel_ 1.0 - 1.4
113-
Neuroimaging file i/o library
120+
Neuroimaging file i/o library.
121+
122+
Python_ 2.7
114123

115124
NetworkX_ 1.0 - 1.8
116125
Python package for working with complex networks.
@@ -124,10 +133,6 @@ Enthought_ Traits_ 4.0.0 - 4.3.0
124133

125134
Dateutil 1.5 -
126135

127-
.. note::
128-
129-
Full distributions such as Anaconda_ or Canopy_ provide the above packages,
130-
except Nibabel_.
131136

132137
Strong Recommendations
133138
~~~~~~~~~~~~~~~~~~~~~~
@@ -140,18 +145,22 @@ Matplotlib_ 1.0 - 1.2
140145
Plotting library
141146

142147
`RDFLib <http://rdflib.readthedocs.org/en/latest/>`_ 4.1
143-
RDFLibrary required for provenance export as RDF
148+
RDFLibrary required for provenance export as RDF
144149

145150
Sphinx_ 1.1
146151
Required for building the documentation
147152

148153
`Graphviz <http://www.graphviz.org/>`_
149-
Required for building the documentation
154+
Required for building the documentation. The python wrapper package (``graphviz``)
155+
and the program itself both need to be installed.
150156

151157
Interface Dependencies
152158
~~~~~~~~~~~~~~~~~~~~~~
153159

154-
These are the software packages that nipype.interfaces wraps:
160+
You might not need some of the following packages, depending on what exactly you
161+
want to use nipype for. If you do need any of them, install nipype's wrapper package
162+
(``nipype.interfaces``), then install the programs separately onto your computer, just
163+
like you would install any other app.
155164

156165
FSL_
157166
4.1.0 or later

0 commit comments

Comments
 (0)