summaryrefslogtreecommitdiff
path: root/numpy/distutils/misc_util.py
diff options
context:
space:
mode:
authorRalf Gommers <ralf.gommers@gmail.com>2017-06-10 15:56:14 +1200
committerRalf Gommers <ralf.gommers@gmail.com>2017-06-10 18:19:17 +1200
commit34075a54e7aa10e80d41ef33ec7102292ecff0d5 (patch)
tree537ce22035ad4a22e7eba29720124b5eb82d4574 /numpy/distutils/misc_util.py
parentfa913a8ea6a8b363962dec6d656049a1371b53d9 (diff)
downloadnumpy-34075a54e7aa10e80d41ef33ec7102292ecff0d5.tar.gz
DOC: BLD: fix lots of Sphinx warnings/errors.
Diffstat (limited to 'numpy/distutils/misc_util.py')
-rw-r--r--numpy/distutils/misc_util.py28
1 files changed, 15 insertions, 13 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py
index dbf0d1547..061abe9dd 100644
--- a/numpy/distutils/misc_util.py
+++ b/numpy/distutils/misc_util.py
@@ -1064,24 +1064,25 @@ class Configuration(object):
Notes
-----
- Rules for installation paths:
- foo/bar -> (foo/bar, foo/bar) -> parent/foo/bar
- (gun, foo/bar) -> parent/gun
- foo/* -> (foo/a, foo/a), (foo/b, foo/b) -> parent/foo/a, parent/foo/b
- (gun, foo/*) -> (gun, foo/a), (gun, foo/b) -> gun
- (gun/*, foo/*) -> parent/gun/a, parent/gun/b
- /foo/bar -> (bar, /foo/bar) -> parent/bar
- (gun, /foo/bar) -> parent/gun
- (fun/*/gun/*, sun/foo/bar) -> parent/fun/foo/gun/bar
+ Rules for installation paths::
+
+ foo/bar -> (foo/bar, foo/bar) -> parent/foo/bar
+ (gun, foo/bar) -> parent/gun
+ foo/* -> (foo/a, foo/a), (foo/b, foo/b) -> parent/foo/a, parent/foo/b
+ (gun, foo/*) -> (gun, foo/a), (gun, foo/b) -> gun
+ (gun/*, foo/*) -> parent/gun/a, parent/gun/b
+ /foo/bar -> (bar, /foo/bar) -> parent/bar
+ (gun, /foo/bar) -> parent/gun
+ (fun/*/gun/*, sun/foo/bar) -> parent/fun/foo/gun/bar
Examples
--------
For example suppose the source directory contains fun/foo.dat and
- fun/bar/car.dat::
+ fun/bar/car.dat:
- >>> self.add_data_dir('fun') #doctest: +SKIP
- >>> self.add_data_dir(('sun', 'fun')) #doctest: +SKIP
- >>> self.add_data_dir(('gun', '/full/path/to/fun'))#doctest: +SKIP
+ >>> self.add_data_dir('fun') #doctest: +SKIP
+ >>> self.add_data_dir(('sun', 'fun')) #doctest: +SKIP
+ >>> self.add_data_dir(('gun', '/full/path/to/fun'))#doctest: +SKIP
Will install data-files to the locations::
@@ -1097,6 +1098,7 @@ class Configuration(object):
gun/
foo.dat
car.dat
+
"""
if is_sequence(data_path):
d, data_path = data_path