summaryrefslogtreecommitdiff
path: root/numpy/distutils
diff options
context:
space:
mode:
authorPaul Ivanov <paul.ivanov@local>2009-12-28 20:49:52 +0000
committerPaul Ivanov <paul.ivanov@local>2009-12-28 20:49:52 +0000
commite4f233ecfedd2aafa258db2d3ae27e30604cc020 (patch)
tree6d32fbdd19b8dca00cd7cafd8df076bac55ddfd8 /numpy/distutils
parent5ba01996a9ab2fdfb7c120a5afae801f854a781a (diff)
downloadnumpy-e4f233ecfedd2aafa258db2d3ae27e30604cc020.tar.gz
fixed a whole bunch of doctests
Diffstat (limited to 'numpy/distutils')
-rw-r--r--numpy/distutils/misc_util.py16
-rw-r--r--numpy/distutils/system_info.py4
2 files changed, 10 insertions, 10 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py
index f5b8b7823..7380ad527 100644
--- a/numpy/distutils/misc_util.py
+++ b/numpy/distutils/misc_util.py
@@ -775,7 +775,7 @@ class Configuration(object):
Examples
--------
- >>> setup(\**config.todict()).
+ >>> setup(**config.todict()) #doctest: +SKIP
"""
self._optimize_data_files()
@@ -1019,9 +1019,9 @@ class Configuration(object):
For example suppose the source directory contains fun/foo.dat and
fun/bar/car.dat::
- >>> self.add_data_dir('fun')
- >>> self.add_data_dir(('sun', 'fun'))
- >>> self.add_data_dir(('gun', '/full/path/to/fun'))
+ >>> 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::
@@ -1176,9 +1176,9 @@ class Configuration(object):
Add files to the list of data_files to be included with the package.
>>> self.add_data_files('foo.dat',
- ('fun', ['gun.dat', 'nun/pun.dat', '/tmp/sun.dat']),
- 'bar/cat.dat',
- '/full/path/to/can.dat')
+ ... ('fun', ['gun.dat', 'nun/pun.dat', '/tmp/sun.dat']),
+ ... 'bar/cat.dat',
+ ... '/full/path/to/can.dat') #doctest: +SKIP
will install these data files to::
@@ -2068,7 +2068,7 @@ def get_info(pkgname, dirs=None):
To get the necessary information for the npymath library from NumPy:
>>> npymath_info = np.distutils.misc_util.get_info('npymath')
- >>> npymath_info
+ >>> npymath_info #doctest: +SKIP
{'define_macros': [], 'libraries': ['npymath'], 'library_dirs':
['.../numpy/core/lib'], 'include_dirs': ['.../numpy/core/include']}
diff --git a/numpy/distutils/system_info.py b/numpy/distutils/system_info.py
index d8e1ac0b6..ab375246f 100644
--- a/numpy/distutils/system_info.py
+++ b/numpy/distutils/system_info.py
@@ -153,11 +153,11 @@ def libpaths(paths,bits):
>>> paths = ['/usr/X11R6/lib','/usr/X11/lib','/usr/lib']
For a 32-bit platform, this is already valid:
- >>> libpaths(paths,32)
+ >>> np.distutils.system_info.libpaths(paths,32)
['/usr/X11R6/lib', '/usr/X11/lib', '/usr/lib']
On 64 bits, we prepend the '64' postfix
- >>> libpaths(paths,64)
+ >>> np.distutils.system_info.libpaths(paths,64)
['/usr/X11R6/lib64', '/usr/X11R6/lib', '/usr/X11/lib64', '/usr/X11/lib',
'/usr/lib64', '/usr/lib']
"""