Removed shell command from copy function's docstring

pull/428/head
Dan Stromberg 2021-06-12 15:17:39 -07:00
rodzic ee1934091b
commit aa3a74d3ea
1 zmienionych plików z 2 dodań i 10 usunięć

Wyświetl plik

@ -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)