Skip to content
Merged
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
3 changes: 3 additions & 0 deletions pyperformance/venv.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ def create(cls, root=None, python=None, *,

@classmethod
def ensure(cls, root, python=None, *,
inherit_environ=None,
upgrade=False,
**kwargs
):
Expand All @@ -184,6 +185,7 @@ def ensure(cls, root, python=None, *,

if exists:
self = super().ensure(root)
self.inherit_environ = inherit_environ
if upgrade:
self.upgrade_pip()
else:
Expand All @@ -193,6 +195,7 @@ def ensure(cls, root, python=None, *,
return cls.create(
root,
python,
inherit_environ=inherit_environ,
upgrade=upgrade,
**kwargs
)
Expand Down