Skip to content
This repository has been archived by the owner on Apr 18, 2018. It is now read-only.

Added --always-copy to virtualenv call #55

Open
wants to merge 2 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pyleus/cli/virtualenv_proxy.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def __init__(self, path,

def _create_virtualenv(self):
"""Creates the actual virtualenv"""
cmd = ["virtualenv", self.path]
cmd = ["virtualenv", "--always-copy", self.path]
if self._system_site_packages:
cmd.append("--system-site-packages")

Expand Down
4 changes: 2 additions & 2 deletions tests/cli/virtualenv_proxy_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ def test__create_virtualenv_system_site_packages(
system_site_packages=True,
verbose=True)
mock_cmd.assert_called_once_with(
["virtualenv", VENV_PATH, "--system-site-packages"],
["virtualenv", "--always-copy", VENV_PATH, "--system-site-packages"],
stdout=venv._out_stream,
stderr=venv._err_stream,
err_msg=mock.ANY
Expand All @@ -72,7 +72,7 @@ def test__create_virtualenv_no_system_site_packages(
system_site_packages=False,
verbose=True)
mock_cmd.assert_called_once_with(
["virtualenv", VENV_PATH],
["virtualenv", "--always-copy", VENV_PATH],
stdout=venv._out_stream,
stderr=venv._err_stream,
err_msg=mock.ANY
Expand Down