diff --git a/installer b/installer index 4a4e824c..28e0f76f 100755 --- a/installer +++ b/installer @@ -116,16 +116,8 @@ def copytree(src, dst, symlinks=False, ignore=None, copy_function=shutil.copy2, def copy(source_dir, dest_dir): - """ - Copy modules to a lib location. - - This was a shell command: - cmd = "find . -maxdepth 1 -mindepth 1 ( -name '*.py' -not -name 'test_*' -not -name 'setup.py' ) - -or ( -type d -not -name 'dist' -not -name '*.egg-info' -not -name '__pycache__' ) - | xargs --no-run-if-empty cp -r -t $(PREFIX)" - Deleted the backslashes from the above shell command for the benefit of syntastic - """ - ignore = shutil.ignore_patterns('*.py', 'test_*', 'setup.py', 'dist', '*.ogg-info', '__pycache__') + """Copy modules to a lib location.""" + ignore = shutil.ignore_patterns('test_*', 'setup.py', 'dist', '*.ogg-info', '__pycache__') copytree(source_dir, dest_dir, symlinks=True, ignore=ignore, ignore_dangling_symlinks=False)