Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

exclude '.tox', '.nox' from being copied during 'pip install .' #6770

Merged
merged 14 commits into from
Aug 5, 2019
Prev Previous commit
Next Next commit
fixed lint, excludes only .tox and .nox
  • Loading branch information
omry committed Jul 23, 2019
commit 67ce4427dd3500d2f886c1c04cd729cb4b55b242
6 changes: 3 additions & 3 deletions src/pip/_internal/download.py
Original file line number Diff line number Diff line change
Expand Up @@ -942,12 +942,12 @@ def unpack_file_url(
shutil.copytree(link_path,
location,
symlinks=True,
# Pulling in those directories can potentially be very slow.
# Excludin them speeds things up substantially in some cases.
# Pulling in those directories can potentially
# be very slow.
# see dicsussion at:
omry marked this conversation as resolved.
Show resolved Hide resolved
# https://github.com/pypa/pip/issues/2195
# https://github.com/pypa/pip/pull/2196
ignore=shutil.ignore_patterns('.tox', '.nox', '.git', '.hg', '.bzr', '.svn'))
ignore=shutil.ignore_patterns('.tox', '.nox'))
omry marked this conversation as resolved.
Show resolved Hide resolved

if download_dir:
logger.info('Link is a directory, ignoring download_dir')
Expand Down