diff options
author | Pearu Peterson <pearu.peterson@gmail.com> | 2006-05-02 14:46:05 +0000 |
---|---|---|
committer | Pearu Peterson <pearu.peterson@gmail.com> | 2006-05-02 14:46:05 +0000 |
commit | 20cd0157fa6a3ff3ad2f431965092caf1246646c (patch) | |
tree | 12b779ea29742433c5942367412b3e099ca15c77 /numpy/distutils/misc_util.py | |
parent | 1615d531bea612238c3bdffb35289e13bc792e8e (diff) | |
download | numpy-20cd0157fa6a3ff3ad2f431965092caf1246646c.tar.gz |
Fixed prune file pattern - subdirectories were exluded by this bug for add_data_dir.
Diffstat (limited to 'numpy/distutils/misc_util.py')
-rw-r--r-- | numpy/distutils/misc_util.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/numpy/distutils/misc_util.py b/numpy/distutils/misc_util.py index b71ce0e62..9308e5b29 100644 --- a/numpy/distutils/misc_util.py +++ b/numpy/distutils/misc_util.py @@ -370,7 +370,7 @@ def is_local_src_dir(directory): def general_source_files(top_path): pruned_directories = {'CVS':1, '.svn':1, 'build':1} - prune_file_pat = re.compile(r'(?:^\..*|[~#]|\.py[co]|\.o)$') + prune_file_pat = re.compile(r'(?:[~#]|\.py[co]|\.o)$') for dirpath, dirnames, filenames in os.walk(top_path, topdown=True): pruned = [ d for d in dirnames if d not in pruned_directories ] dirnames[:] = pruned @@ -383,7 +383,7 @@ def general_source_directories_files(top_path): files contained. """ pruned_directories = ['CVS','.svn','build'] - prune_file_pat = re.compile(r'(?:^\..*|[~#]|\.py[co]|\.o)$') + prune_file_pat = re.compile(r'(?:[~#]|\.py[co]|\.o)$') for dirpath, dirnames, filenames in os.walk(top_path, topdown=True): pruned = [ d for d in dirnames if d not in pruned_directories ] dirnames[:] = pruned |